ScriptableButton and mouseCodeToRun

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

ScriptableButton and mouseCodeToRun

polishookm
I know how to open a halo and navigate through menu choices to add a
mouseUp action to a ScriptableButton.

How can I add the mouseUp action with code? To be something like:

button := ScriptableButton new.
button position: 200 @ 200.
button label: 'Paragraph'.
" what goes here? "
button extension: (mouseUpCodeToRun -> 'Transcript show').
button openInWorld.

If the detective-process  of how to figure it out could be explained as
well, that would be great.

Thanks very much in advance,

MP

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners