04-26-2007 05:22 PM
04-26-2007 06:51 PM
04-27-2007 09:14 AM
I'm not sure if there is a single function call to restore all controls to their default values as set in the UIR file. (I presume this is the meaning of the second part of your question.)
The way I would do it is in your main program or Init function, read all the values from the controls(GetCtrlVal() ), store theses values, and then when you want to return to the defaults, reset them yourself (SetCtrlVal() ).
04-27-2007 11:22 AM
Hi jsugrim,
to manipulate menu items there is a useful instruction that is InstallMenuDimmerCallback which has been discussed in CVI Tips / Trick thread: you can look at that thread for some comment on it.
Regarding the default values, it's not clear if you want to change the default value for some control or to return controls to their default value: in the first case you can follow Jonathan suggestion, while in the second case you can use DefaultPanel or DefaultCtrl functions.
I also want to point you to two useful functions wich are SavePanelState and RecallPaneState: they permits you to save on disk actual values of all controls in a panel and restore them afterwards.
04-27-2007 03:19 PM
Thank you
All of the solutions works very well.
Thanks again,
Jsugrim