Q: How to create a command button
Ken G. Brown
kbrown at tnc.ab.ca
Thu Mar 14 14:16:04 UTC 2002
Thank you Sir for asking this question.
It has been bothering me too but I hesitated to ask the list because
have not given it an honest try yet, just a couple half-hearted
attempts without much luck. The answers will save me a bunch of time
I'm sure.
One interesting and nifty thing you can do to create a button for an
existing menu item is to get the halos up for the full menu, then
click again to get the halos on the individual menu item, then
duplicate it. Presto, a button that does the same as the menu
selection.
Another somewhat related question I have is: What is the easiest way
to get the complete code that would programmatically recreate the
button and its settings and actions, once you have created it by
other means?
Ken
At 08:04 +0100 on 2002/03/14, Martin Drautzburg is rumored to have written:
>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
|