From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic textbox "indicator" to "hot"

How do I programatically toggle (via checkbox) a textbox control mode attribute between "indicator" and "hot"?
I am using LabWindows 5.01 on WinNT.
0 Kudos
Message 1 of 2
(2,538 Views)
Use the function SetCtrlAttribute to set the attribute ATTR_CTRL_MODE to either VAL_INDICATOR or VAL_HOT.
For example,
SetCtrlAttribute (hMyPanel, MYPANEL_MYTEXTBOX,ATTR_CTRL_MODE, VAL_INDICATOR);
See the function help in the fuction panel for SetCtrlAttribute.
Message 2 of 2
(2,538 Views)