Hi Brad,

the magic of the OK and Cancel buttons is due to the opening of the UI with 
openDialogWithSpec (instead of openWithSpec).

There is info on that in the Spec documentation, in the ‘Managing Windows’ 
chapter (which I finished last week :-) ). You can find a pdf of that chapter 
here: 
https://ci.inria.fr/pharo-contribution/view/Books/job/BuildingUIWithSpec/lastSuccessfulBuild/artifact/book-result/ManagingWindow/ManagingWindow.pdf

HTH
--
Does this mail seem too brief? Sorry for that, I don’t mean to be rude! Please 
see http://emailcharter.org .

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD and RyCh labs  -  Computer Science Department (DCC)  -  University of 
Chile

> On Sep 6, 2016, at 18:14, Brad Selfridge <bsselfri...@gmail.com> wrote:
> 
> I've been trying for several days to get the Spec InputWidget to work as
> expected. I've been running the "example2" example.  If you enter text in
> the input field and press the "enter" key, then the input text is returned.
> But, if you click the "Ok" button rather than "enter" key, then the input
> text field is empty. I've tried to dig into why, but I stymied. 
> 
> Can someone please help me with this? 
> 
> 
> 
> -----
> Brad Selfridge
> --
> View this message in context: 
> http://forum.world.st/Spec-InputWidget-question-tp4914439.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 
> 


Reply via email to