[ENH] Confirmation Dialogs (v2)

russell.allen at firebirdmedia.com russell.allen at firebirdmedia.com
Thu May 25 20:04:34 UTC 2000


Hi  everyone,

Here is my second version of my MacOS X-ish modal dialogs.  What this
hack does is to overload the #confirm:, #confirm:orCancel: and #inform:
methods for morphs and models.

Following the criticism and suggestions of those people who tried out
the first attempt (thank you very much) this version:

- uses the ScriptingSystem rather than ImageImports
- creates a wrapper for the relevant morph rather then creating a
submorph.  This way subclasses of AlignmentMorph such as BookMorph can
use the new dialogs
- creates a ConfirmationMorph for the top view of a model that calls
"self confirm: x" etc
- uses AlignmentMorphs for layout rather then doing it itself.

Please try it out and tell me whether you think that this approach to
dialogs is better or worse, and if there are any other ways you like
better...

:)
Russell

----------------------------------------
Russell Allen

russell.allen at firebirdmedia.com

----------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: confirmation.18.cs
Type: application/octet-stream
Size: 7279 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20000525/ac2c406e/confirmation.18.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: confirm.gif
Type: application/octet-stream
Size: 301 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20000525/ac2c406e/confirm.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: confirmcancel.gif
Type: application/octet-stream
Size: 353 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20000525/ac2c406e/confirmcancel.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inform.gif
Type: application/octet-stream
Size: 332 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20000525/ac2c406e/inform.obj
-------------- next part --------------




More information about the Squeak-dev mailing list