Dear Markus, thanks for the 'extended' answer. Unfortunately I could not follow your description.
I did the following:
1. I worked with Squeakland image 3.8-05 latest update: #531
2. I drew an 'Ellipse' and filled it (that should become my 'button')
3. The balloon of the 'color-pipette-halo' says: 'Repaint'. Shift-Click: Back in the paint tool. Ctrl-Click: I get a menu (must be the same for every halo) that lists:
grab copy to paste buffer delete . . . debug
But neither a button, nor an entry 'button'.
Cheers, Uwe
-----Original Message----- From: Markus Gaelli [mailto:gaelli@emergent.de] Sent: Wednesday, March 01, 2006 1:32 PM To: Hübner, Uwe Cc: Squeakland Subject: Re: Label of a button Was: RE: [Squeakland] newbie(ish) question (buttons) Importance: High
Hi Uwe,
indeed, my mail was a bit short... ;-)
Two ways of doing it:
1.) Assuming you are using an up-to-date squeakland-image click on the color-pipette-halo of your morph (might be chift-click, depends on the morph, haven't explored the differences yet) and then the button labeled "button" on the bottom. ;-) There you can add a label. You can set the text of the label by opening a viewer on it. Go to the "text"-category and type in your label in the characters setter. (It is a bit strange that one cannot change the label in the dialog directly). From there you can also drag put the label setter for reasons described in my last mail below.
2.) Take out a text morph of the supplies-flap, embed it into your button, and proceed as above. The advantage of doing so is that you can change the text and the font directly.
Cheers,
Markus
p.s. I actually found out about the first option only last week, after sending below mail. EToys for the constructivistic explorer: "Always get a new surprise feature from time to time..." ;-)
On Mar 1, 2006, at 1:08 PM, Hübner, Uwe wrote:
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?
Sincerely,
Uwe
-----Original Message----- From: squeakland-bounces@squeakland.org [mailto:squeakland-bounces@squeakland.org]On Behalf Of Markus Gaelli Sent: Friday, February 24, 2006 2:32 PM To: squeakland@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..." ;-)
Cheers,
Markus _______________________________________________ Squeakland mailing list Squeakland@squeakland.org http://squeakland.org/mailman/listinfo/squeakland
Hi Uwe,
thanks for the 'extended' answer. Unfortunately I could not follow your description.
I did the following:
I worked with Squeakland image 3.8-05 latest update: #531
I drew an 'Ellipse' and filled it (that should become my 'button')
The balloon of the 'color-pipette-halo' says: 'Repaint'.
This is bizarre. If I don't press any key at all and hover over the pipette in 3.8-05 #531 I get the following:
After pressing it (without shift), I get:
And then I can press the button "Button" on the bottom...
Does that help? But believe me, the other way is simpler, tell your ellipse to "accept drops" using the red handle, then just grab a text morph from the supplies and embed it. Open a viewer on the text and drag out the "characters"-setter found in the basic category into your buttonDown script.
Cheers,
Markus
Shift-Click: Back in the paint tool. Ctrl-Click: I get a menu (must be the same for every halo) that lists:
grab copy to paste buffer delete . . . debug
But neither a button, nor an entry 'button'.
Cheers, Uwe
-----Original Message----- From: Markus Gaelli [mailto:gaelli@emergent.de] Sent: Wednesday, March 01, 2006 1:32 PM To: Hübner, Uwe Cc: Squeakland Subject: Re: Label of a button Was: RE: [Squeakland] newbie(ish) question (buttons) Importance: High
Hi Uwe,
indeed, my mail was a bit short... ;-)
Two ways of doing it:
1.) Assuming you are using an up-to-date squeakland-image click on the color-pipette-halo of your morph (might be chift-click, depends on the morph, haven't explored the differences yet) and then the button labeled "button" on the bottom. ;-) There you can add a label. You can set the text of the label by opening a viewer on it. Go to the "text"-category and type in your label in the characters setter. (It is a bit strange that one cannot change the label in the dialog directly). From there you can also drag put the label setter for reasons described in my last mail below.
2.) Take out a text morph of the supplies-flap, embed it into your button, and proceed as above. The advantage of doing so is that you can change the text and the font directly.
Cheers,
Markus
p.s. I actually found out about the first option only last week, after sending below mail. EToys for the constructivistic explorer: "Always get a new surprise feature from time to time..." ;-)
On Mar 1, 2006, at 1:08 PM, Hübner, Uwe wrote:
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?
Sincerely,
Uwe
-----Original Message----- From: squeakland-bounces@squeakland.org [mailto:squeakland-bounces@squeakland.org]On Behalf Of Markus Gaelli Sent: Friday, February 24, 2006 2:32 PM To: squeakland@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..." ;-)
Cheers,
Markus _______________________________________________ Squeakland mailing list Squeakland@squeakland.org http://squeakland.org/mailman/listinfo/squeakland
As far as the balloon instructions...
I believe it may be one of you is using a "Squeak" image and the other "Squeakland". The paint/repaint balloon help/reaction is due to a preference -- the default in the Squeakland image is to "get a property sheet from halo". It might be you are using an image that does not have this preference selected.
The other thing is a sketch will have a grey/repaint handle in the halo and an ellipse/non-sketch will have the bright pink/color picker/dropper handle.
-- Kim
At 1:28 PM +0100 3/2/06, Markus Gaelli wrote:
Hi Uwe,
thanks for the 'extended' answer. Unfortunately I could not follow your description.
I did the following:
I worked with Squeakland image 3.8-05 latest update: #531
I drew an 'Ellipse' and filled it (that should become my 'button')
The balloon of the 'color-pipette-halo' says: 'Repaint'.
This is bizarre. If I don't press any key at all and hover over the pipette in 3.8-05 #531 I get the following:
Attachment converted: MAC OSX 10.4.5:pipette.png (PNGf/«IC») (001FEDBD) After pressing it (without shift), I get:
Attachment converted: MAC OSX 10.4.5:propSheet.png (PNGf/«IC») (001FEDBE) And then I can press the button "Button" on the bottom...
Does that help? But believe me, the other way is simpler, tell your ellipse to "accept drops" using the red handle, then just grab a text morph from the supplies and embed it. Open a viewer on the text and drag out the "characters"-setter found in the basic category into your buttonDown script.
Cheers,
Markus
Shift-Click: Back in the paint tool. Ctrl-Click: I get a menu (must be the same for every halo) that lists:
grab copy to paste buffer delete . . . debug
But neither a button, nor an entry 'button'.
Cheers, Uwe
-----Original Message----- From: Markus Gaelli [mailto:gaelli@emergent.de] Sent: Wednesday, March 01, 2006 1:32 PM To: Hübner, Uwe Cc: Squeakland Subject: Re: Label of a button Was: RE: [Squeakland] newbie(ish) question (buttons) Importance: High
Hi Uwe,
indeed, my mail was a bit short... ;-)
Two ways of doing it:
1.) Assuming you are using an up-to-date squeakland-image click on the color-pipette-halo of your morph (might be chift-click, depends on the morph, haven't explored the differences yet) and then the button labeled "button" on the bottom. ;-) There you can add a label. You can set the text of the label by opening a viewer on it. Go to the "text"-category and type in your label in the characters setter. (It is a bit strange that one cannot change the label in the dialog directly). From there you can also drag put the label setter for reasons described in my last mail below.
2.) Take out a text morph of the supplies-flap, embed it into your button, and proceed as above. The advantage of doing so is that you can change the text and the font directly.
Cheers,
Markus
p.s. I actually found out about the first option only last week, after sending below mail. EToys for the constructivistic explorer: "Always get a new surprise feature from time to time..." ;-)
On Mar 1, 2006, at 1:08 PM, Hübner, Uwe wrote:
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?
Sincerely,
Uwe
-----Original Message----- From: squeakland-bounces@squeakland.org [mailto:squeakland-bounces@squeakland.org]On Behalf Of Markus Gaelli Sent: Friday, February 24, 2006 2:32 PM To: squeakland@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..." ;-)
Cheers,
Markus _______________________________________________ Squeakland mailing list Squeakland@squeakland.org http://squeakland.org/mailman/listinfo/squeakland
Squeakland mailing list Squeakland@squeakland.org http://squeakland.org/mailman/listinfo/squeakland
squeakland@lists.squeakfoundation.org