Question about "the screen" property of stacks...

Mark Waddingham mark at livecode.com
Thu Jul 11 14:31:14 EDT 2019


On 2019-07-11 19:30, Paul Dupuis via use-livecode wrote:
> Sorry, one more question:
> 
> I assume since 'the screen of stack' is calculated dynamically, that
> in a 'on desktopChanged' handler (triggered by a monitor being
> removed) that looking at 'the screen of stack' for a stack on the
> now-removed monitor would give you the closest remaining monitor?

Yes - the engine refetches the displays list (which you see in the C 
code)
before desktopChanged is sent (indeed, the engine responds to an OS
notification about the screen setup changing in order to send the 
message).

Warmest Regards,

Mark.

-- 
Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps




More information about the Use-livecode mailing list