[UI] Improving ToolBuilder

Gary Chambers gazzaguru2 at btinternet.com
Tue Sep 18 14:13:50 UTC 2007


Ah, ok. Time to discuss extending the flexibility of UIManager in general
then!

> -----Original Message-----
> From: ui-bounces at lists.squeakfoundation.org 
> [mailto:ui-bounces at lists.squeakfoundation.org] On Behalf Of 
> Damien Cassou
> Sent: 18 September 2007 3:09 pm
> To: Squeak's User Interface
> Subject: Re: [UI] Improving ToolBuilder
> 
> 
> Hi Gary,
> 
> 2007/9/18, Gary Chambers <gazzaguru2 at btinternet.com>:
> > > OBMorphicPlatform>>handleConfirmationRequest: request
> > >   ^ PopUpMenu
> > >         confirm: request prompt
> > >         trueChoice: request okChoice
> > >         falseChoice: request cancelChoice
> > >
> > > There is no such method in UIManager.
> >
> >         ^(UIManager default confirm: request prompt)
> >                 ifTrue: [request okChoice]
> >                 ifFalse: [request cancelChoice]
> 
> 
> This is not the same thing because #okChoice and 
> #cancelChoice return strings to be used in the buttons, not 
> in the answers.
> 
> Thank you
> 
> -- 
> Damien Cassou
> _______________________________________________
> UI mailing list
> UI at lists.squeakfoundation.org 
> http://lists.squeakfoundation.org/mailman/listinfo/ui
> 



More information about the UI mailing list