SiNisTer post this code for saving and getting button state for checkbox
here's the code:
Checkbox button code:
[HTML]--Get the State of the Button
Checkbox = Button.GetState("Checkbox");
--Saves the Value as "0" or "1" depending on the Button State
--*Also Remenmber that "Button Up=0" and "Button Down=1"
if Checkbox == 0 then
INIFile.SetValue("AutoPlay\\Docs\\ButtonState.ini" , "Checkbox", "State", "0");
else
INIFile.SetValue("AutoPlay\\Docs\\ButtonState.ini" , "Checkbox", "State", "1");
end[/HTML]
on preload page code:
[HTML]--Gets the Value (i.e: In this case either "1" or "0" and sets the State for the variable)
ButtonState = INIFile.GetValue("AutoPlay\\Docs\\ButtonState.ini" , "Checkbox", "State");
Button.SetState("Checkbox", ButtonState)[/HTML]
but how to do it for radio buttons?
I'm not very good with code, can some one make a example project for 3 or 4 radio buttons?
thanks
here's the code:
Checkbox button code:
[HTML]--Get the State of the Button
Checkbox = Button.GetState("Checkbox");
--Saves the Value as "0" or "1" depending on the Button State
--*Also Remenmber that "Button Up=0" and "Button Down=1"
if Checkbox == 0 then
INIFile.SetValue("AutoPlay\\Docs\\ButtonState.ini" , "Checkbox", "State", "0");
else
INIFile.SetValue("AutoPlay\\Docs\\ButtonState.ini" , "Checkbox", "State", "1");
end[/HTML]
on preload page code:
[HTML]--Gets the Value (i.e: In this case either "1" or "0" and sets the State for the variable)
ButtonState = INIFile.GetValue("AutoPlay\\Docs\\ButtonState.ini" , "Checkbox", "State");
Button.SetState("Checkbox", ButtonState)[/HTML]
but how to do it for radio buttons?
I'm not very good with code, can some one make a example project for 3 or 4 radio buttons?
thanks
Comment