LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable GUI Controls & Menu?

I'm working on a control application.  When the application enters a particular mode I want it to lock out the GUI controls but still display status on the GUI.  I know how to do this with .NET applications but am at a loss with a Labwindows appliction.

 

Does anybody know how I can grey out the GUI controls including selected drop down menu options?

 

Thanks!

0 Kudos
Message 1 of 3
(3,466 Views)

Have a look at SetCtrlAttribute(...ATTR_DIMMED...) and SetMenuBarAttribute(...ATTR_DIMMED...)

 

JR

0 Kudos
Message 2 of 3
(3,462 Views)

int SetCtrlAttribute (int panelHandle, int controlID, int controlAttribute, ...);

 

for example.....

SetCtrlAttribute( mainPanel, Main_PANEL_Zoom_In_Button_R, ATTR_DIMMED, TRUE);

 

 

jr beat me to it

Message Edited by scomack on 10-20-2009 10:08 AM 
Message Edited by scomack on 10-20-2009 10:09 AM
0 Kudos
Message 3 of 3
(3,461 Views)