<div dir="auto">Sounds to me like you don't <span style="font-family:sans-serif">really </span>want a modal dialog :-)<div dir="auto"><br></div><div dir="auto">How would the control flow of the code invoking the dialog look like when "something" interrupts and closes it? Modal invocations provide a synchronous interface for user input after all. If a window had to terminate a process to be able to quit an application that displays a modal dialog, I would think some abstraction is leaking.</div><div dir="auto"><br></div><div dir="auto">Anyway as a precondition modal dialogs would need to know their parent windows or morphs, or the other way around. I don't think they currently do. Our modal dialogs currently affect the whole world (unlike in native applications), don't they?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com" target="_blank" rel="noreferrer">eliot.miranda@gmail.com</a>> schrieb am Di., 14. Jan. 2020, 03:00:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="ltr">Hi Jakob,</div><div dir="ltr"><br><blockquote type="cite">On Jan 13, 2020, at 11:24 AM, Jakob Reschke <<a href="mailto:forums.jakob@resfarm.de" rel="noreferrer noreferrer" target="_blank">forums.jakob@resfarm.de</a>> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="auto"><div>Do I understand correctly that your simulation prompts you endlessly and you want a "power button" to shut it down?</div></div></div></blockquote><div><br></div>Sort of.  I think Christoph is misunderstanding, thinking I want a button on the dialog.  I want to be able to close the root window at any time.<div><br></div><div>The root window contains the image of the simulation’s display bitmap, a transcript etc, and a pop up menu from which one can derive several other windows (processor, stack frame and object inspectors, etc).  If so chosen the simulator can run an image could gaining a REPL which prompts for an expression to evaluate, this is the modal dialog prompt.  When the root window is closed, all attendant inspectors and any debugger are closed also.  I would like to be able to close the root window by clicking its close button while the the modal dialogue is displaying to be able to shut down everything.  As it is I have to toggle the dialog into non-exclusivity before I can do so.  It’s mildly annoying (and new behaviour as of a few years ago).<br><div><br><blockquote type="cite"><div dir="ltr"><div dir="auto"><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com" rel="noreferrer noreferrer" target="_blank">eliot.miranda@gmail.com</a>> schrieb am Fr., 10. Jan. 2020, 00:58:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi All,<div><br></div><div>    would it be easy to modify modal dialog box interaction to allow closing the "parent window" of a dialog while in the modal dialog?  In the VMSimulator I use a modal dialog to prompt the user for input to evaluate, to test the sim.  Often I simply want to stop after the first expression and so wish to diss,iss the entire simulation omg the second modal dialog.  Bit I'm always forced to select "don't be modal" before I can close the thing.  It;'s a little annoying.<br><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div></div></div>
<br>
</blockquote></div></div></div>
<span></span><br></div></blockquote></div></div></div><br>
</blockquote></div>