Q: How to create a command button

Alan Kay Alan.Kay at squeakland.org
Thu Mar 14 13:17:03 UTC 2002


On any morph, do a cmd-click (alt-click on PC) to bring up its halo 
of handles. Press down on the red handle to get a menu and look near 
its bottom for "extras". Slide down there and look at its popout for 
"add new mouse action". Releasing on this will pop up a dialogue box 
in which you can type your Smalltalk expression.

There are many other ways (too many IMNSHO) but this is the simplest.

Cheers,

Alan

-------

At 8:04 AM +0100 3/14/02, Martin Drautzburg wrote:
>What is the easiest way to create a button, that evaluates a smalltalk
>expression.
>
>I am currenly writing my first lines of Smalltalk code (a TestCase)
>and I need to run this every minute. I would like to have a button
>that evals [TttBoardTest new testSuite]. Tried some of the morphic
>Buttons but all I could make them do was flash.


-- 



More information about the Squeak-dev mailing list