[Q] FillInTheBlankMorph>>getUserResponse evil?

Ken Causey ken at ineffable.com
Mon May 13 14:28:32 UTC 2002


Thank you, there's some interesting stuff here.

Ken

On Sun, 2002-05-12 at 18:17, Steven Swerling wrote:
> Ken,
> 
> This was a pet peeve of mine awhile ago. I wrote some tools for modal 
> support, you might want to give them a try. The ModalDialogs are what I 
> believe you need -- included are sample MessageBox, ConfirmBox, and 
> YesNoCancelBox to use as reference for subclassing ModalDialogMorph. 
> Your code will not continue until there is a response -- eg. doing a 
> "print it" on
> 
>   YesNoCancel confirm: 'Does my body lie over the ocean?' title: 'Please 
> confirm'
> 
> will shut out the UI on all but the opened dialog until the user makes a 
> choice. These "feel" like regular modal windows. They can be nested. If 
> there is an exception, modality is cancelled automatically. It only 
> works in Morphic.
> 
> See:
>   http://users.bestweb.net/~swerling/squeak/spsSqueakDocs.html#modalSupport
> 
> There is also a nice ComboBoxMorph on this page if anybody wants, this 
> is a very complicated widget in terms of modality (keyboard events need 
> to go to the TextMorph, unless they are the up/down arrow keys, in which 
> case they go to the popup list, mouse events go either to the popup list 
> or the TextMorph, or if there is a click outside of the popup list, they 
> close the list).  This combo box also has an option to automatically 
> filter the items in the popup list based on what is typed in the 
> textmorph. I have been using it for quite awhile now in the SPSBrowser, 
> it works well. I have tweaked the code a tiny bit since posting the code 
> on the web page listed above -- let me know if you want the most 
> up-to-date version.
> 
> Steve.
> 
> Ken Causey wrote:
> 





More information about the Squeak-dev mailing list