wait with messages...
martin at harbourtown.co.uk
Sun Feb 1 03:27:26 CST 2004
Regarding remote popups, I'd like to add the esoteric information that you
need to use this wait with messages conditional in standalones that run
under mac system 7 as well as windows. 68k standalones tested under
emulation on a PPC don't need this, but when run under system 7 they behave
the same as windows.
There is another subtle platform difference I've found with remote popups,
which is that if the traversalon of the remote popup button is true (the
default), the resulting menu will grab the focus under windows (and mac
system 7), but not on PPC mac. I'd guess this is a related isssue.
>For example, one thing that has been bugged in Bugzilla is that opening
>up a popup menu remotely:
> popup (long id of btn "ContextPop" of card 1 of stack "MyStack") at
>is modal on MacOS (i.e. it waits until you pick something from the menu
>before it goes to the next script line), but on Windows, it's not (it
>pops up the menu and immediately goes to the next script line).
>So to get around it, I have added right after it:
> if the platform is "Win32" then
> wait until the mouse is up with messages
> end if
>This causes the script to pause, but allows other things to happen
>(pendingMessages get sent, etc.).
More information about the use-livecode