PDA

View Full Version : Need help on changing button status with code



talm
July 23rd, 2004, 10:35 AM
Hello all,

I am trying to have a button state change when I enter a certain panel name. In my CCF, I have 4 different pages with channels. One panel is called Local and the other call Movies. When I enter the Local channel, I want the button to be pressed and the other 3 not. When I go to the Movies Panel, I want the movie button to be pressed and the other 3 not. I know that I can do it using Tonto but I would like to know how to do it via code. Here is what code I am using (taken from the WiKi) but it does not work.

STATE:LUA:return(NetRemote.GetVariableName('NR.Pan elName')=='Local');

In the inactive state for the button, I have the pressed icon and in the active state I have the non pressed icon.

Thanks for any help.

Tal

Ben S
August 1st, 2004, 04:09 AM
Are you running 0.996rc3 or 0.99?

talm
August 1st, 2004, 06:38 AM
Ben,

I am using 0.996.3