Support Board
Date/Time: Mon, 17 Mar 2025 02:24:02 +0000
Post From: Add API to GET the current state of an Advanced Control Bar Button
[2022-08-23 19:33:02] |
User719512 - Posts: 303 |
Hello, Can you add an API to get the current state of an Advanced Control Bar Button? The issue is when wiring up a new button, the code has no idea if the button is already pressed or not, so it is unclear what to initialize internal variables to in all test cases. For example, if one were tying this to a study visibility and you are using 1 button for the state of 1 study visibility, you can just set to the current visibility of the study. If however, you already have the button tied to the visibility of study and want to duplicate and attach the same button to a 2nd study (controlling both), you would want to set the initial state of the newest instance to match the existing visibility state of the prior instance (to match the button state). One would need to know if the advanced control bar button is in the default/off or pushed/on state. Can you add an API like: sc.GetCustomStudyControlBarButtonEnable(int ControlBarButtonNum)
which returns the state of the button?
|