[Squeakland] Label of a button Was: RE: newbie(ish) question (buttons)

Hübner, Uwe uh at msc-ge.com
Wed Mar 1 04:08:10 PST 2006

Hi Squeakers.

I wonder if I've missed something.
How can I create a 'Label' of a button?
(I think a 'button' is something I've drawn and
 now tell it to act upon mouse-down, isn't it?)
If a Label means text embedded into a drawing,
how can I change that text?



-----Original Message-----
From: squeakland-bounces at squeakland.org
[mailto:squeakland-bounces at squeakland.org]On Behalf Of Markus Gaelli
Sent: Friday, February 24, 2006 2:32 PM
To: squeakland at squeakland.org
Subject: Re: [Squeakland] newbie(ish) question (buttons)
Importance: High

Hi Kelly,

> Need a little help. I am trying to figure out how to use or (re-use  
> buttons). I have a button to fire a script.
> eg I have a sketch and when you press the button it runs around the  
> playfield.
> I want to be able to click the button a second time to stop the  
> script.
> I have tried many things but just cannot quite get there. Any  
> suggestions?? Thanks

You could ask the label of your button, if it says: "run" then run  
the sketch
_and_ change the label to "stop", and if it says "stop" vice versa.

"What makes sense to the user, often makes sense to the developer  
too..." ;-)


Squeakland mailing list
Squeakland at squeakland.org

More information about the Squeakland mailing list