This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-06-28 10:25:33

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Togglebutton

Is their any easy way to have a toggle button, i tried duplicate another toggle button but i want it for a specific action/ script. By toggle button i mean button next tot the answer script.

Offline

 

#2 2010-06-28 11:28:50

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: Togglebutton

does anyone know how to do this?

Offline

 

#3 2010-06-28 11:42:28

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Togglebutton

A togglebutton is just a button that has a pressed and not pressed state, you gave to click on it to toggle it.

Good examples are the "B U I" buttons every word processor has.

I'd make them like this:
http://img412.imageshack.us/img412/3738/togglebutton.gif

You can also have grouped togglebuttons, so you can only press one at a time, like with the alignment buttons in word processors:
http://www.mediacollege.com/microsoft/word/images/paragraph-align.gif


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#4 2010-06-28 11:44:55

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: Togglebutton

thanks but i was looking for a tutorial how to have one next to a new block i have made which involves programing in squeak
thanks  smile

Last edited by dav09 (2010-06-28 11:47:29)

Offline

 

#5 2010-06-28 11:45:52

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Togglebutton

Ahhh like the checkbox before all variables?


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#6 2010-06-28 11:47:53

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: Togglebutton

JSO wrote:

Ahhh like the checkbox before all variables?

yes thats what i mean

Offline

 

Board footer