PDA

View Full Version : Button SetState


abnrange
12-10-2008, 07:47 PM
Hello,

I just started playing around with button SetState and GetState. I never used this feature before - I need a little help. I' m using the button checkbox.

The following code works fine for my app except that I can put a check in each box. Is there away that if yes box checked, the no box cannot be checked and if no checked you cannot check the yes button. Thanks


YES = Button.GetState("YES");
NO = Button.GetState("NO");

if YES == 1 then
File.Open("AutoPlay\\SoftwareDIS2\\Proxy", "", SW_SHOWNORMAL);
Page.Jump("Firewall");
end

if NO == 1 then
Page.Jump("Firewall");
end

Button.SetState("NO", BTN_UP);
Button.SetState("YES", BTN_UP);

abnrange
12-10-2008, 09:40 PM
I figured it out - thank

I added On Click

Button.SetState("YES", BTN_UP);
Button.SetState("NO", BTN_DOWN);