how ya make something modal?
Steve Elkins
sgelkins at bellsouth.net
Wed Dec 8 05:03:59 UTC 1999
"Jason McVay" <jmcvay at ipa.net> wrote:
> i'm making a dialog box and i need to make it modal. how do i do that?
Have a look at SelectionMenu class>>confirm: and see if it gives you any
ideas. My silly workspace implementation of #warn: goes like this:
menu _ SelectionMenu selections: #('ok').
[true] whileTrue: [
choice _ menu startUpWithCaption: 'You can''t do that!'.
choice = 'ok' ifTrue: [^ #whatever]]
HTH,
Steve
More information about the Squeak-dev
mailing list
|