Trouble with ctbstate

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Trouble with ctbstate

Post by aurumdigitus »

Have been using the script shown below since ctbstate became available in v12.40.0204 - 2013-05-21. It is one of the most used CTB's on the system.
Since the upgrade to 12.70 the Depressed/Non-depressed status is shown in reverse. This is highly confusing.
Have not been able to follow recent Beta so there may have been a code change missed.
Any incite getting correct button status back would be appreciated. :?

Code: Select all

//My Sticky Button - Left
   #413;
// Toggle Button State
          if (ctbstate() == 1) {
            ctbstate(0);
          } else {
            ctbstate(1);
          }

Post Reply