Q: How to create a command button
Scott Wallace
scott.wallace at squeakland.org
Thu Mar 14 19:03:56 UTC 2002
At 5:45 PM +0000 3/14/02, John Hinsley wrote:
> > > What is the easiest way to create a button, that evaluates a smalltalk
> > > expression.
>
>Actually, someone already wrote a nice Do-It button (Martin Smith?). It works
>fine in the latest 3.3a. It's small, so here's the changeset again:
It was *David N.* Smith who contributed the "DoItButton" code.
It was not assimilated into the formal update stream because Squeak
already has Bob Arning's more general feature allowing a "mouse-up
action" to be directly ascribed to *any* morph (a feature mentioned
by Alan recently in a reply in this same thread.)
To use Bob's mouse-up-action feature, choose "add mouse-up action"
from the "extras" branch of any morph's halo menu, and just type in
the code you want to have evaluated on mouse-up.
-- Scott
More information about the Squeak-dev
mailing list
|