View Full Version : on off toggle button

February 10th, 2008, 11:20 AM
Ive searched, but cant seem to locate what is probably an easy task.

Ive attached my ccf file.

I want a power switch type button that toggles between 2 graphics, one is a down position switch that will send a single event to girder, and one is an up position switch that sends another event. I just want the button graphics to show the change when clicked on. If there is an existing thread a link would be great :)

edit, I forgot the up position switch but there are other buttons, as long as I have the code I can always add the other graphic.

February 11th, 2008, 09:55 AM
Buttons can have multiple states, each with their own graphic. Using NetRemote Designer, open the properties box for a button. In the middle, there is a list box titled "states". Right click in this box, and select "Add New State".

Now that you have a second state, you can assign different graphics and/or a different color scheme to the state. In the "Selected State" area at the bottom of the properties box, you can select the NetRemote variable and value that will cause this state to appear.

Hopefully that helps...