[squeak-dev] Closing modal dialogs...

Jakob Reschke forums.jakob at resfarm.de
Wed Jan 15 07:41:13 UTC 2020

Sounds to me like you don't really want a modal dialog :-)

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.

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?

Eliot Miranda <eliot.miranda at gmail.com> schrieb am Di., 14. Jan. 2020,

> Hi Jakob,
> On Jan 13, 2020, at 11:24 AM, Jakob Reschke <forums.jakob at resfarm.de>
> wrote:
> Do I understand correctly that your simulation prompts you endlessly and
> you want a "power button" to shut it down?
> 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.
> 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).
> Eliot Miranda <eliot.miranda at gmail.com> schrieb am Fr., 10. Jan. 2020,
> 00:58:
>> Hi All,
>>     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.
>> _,,,^..^,,,_
>> best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200115/ee03ca84/attachment.html>

More information about the Squeak-dev mailing list