Remembering the state of a button

Help each other out

Remembering the state of a button

Postby mfergusson on Fri Mar 24, 2006 9:57 pm

Hi,

I have a button that toggles on/off which runs a perl program. The viewer needs to see what mode is currently selected, and if the mode is changed get the perl program to act accordingly.

How do I:

1. Once the button has been selected, get it to stay in the selected mode?
2. Get it to remember its state from the previous selection? So if I exit a screen and go back in, it will be set to the last setting.
3. Pass the status as an argument to an external program when selected?

I have a workaround for 3. using the perl program to toggle based on the existance of a file.

Thanks in advance.

Mark
mfergusson
 
Posts: 27
Joined: Thu Mar 09, 2006 8:22 pm