modal window = block handler?

Bob Sneidar bobsneidar at iotecdigital.com
Mon Jul 10 11:18:38 EDT 2017


Of course, modal windows do not "halt code execution" in that sense. They could not because you would not be able to use any code in front or back scripts. They prevent the calling handler from proceeding. It's like inserting blocking code where the modal is called. 

Bob S


> On Jul 10, 2017, at 08:16 , Paul Dupuis via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> A related issue I ran into recently:
> 
> I had a complex modal dialog. In my code for the dialog controls I was
> calling a routine that had a "wait 0 with messages" statement. I
> discovered that the wait ... with messages allows user events (for
> example commandKeyDown, etc.)  to kick off other scripts while the modal
> dialog was still active under OSX. Windows still does a better job of
> modal actually being modal. This was an older stack under LC6.7.11, so I
> am not sure if the this is also applies to more recent versions.





More information about the use-livecode mailing list