LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Unwanted control selection

Small annoying GUI problem. Maybe someone knows a way around this.
When I switch tabs, an indicator control becomes selected (see attached). Since I'm using a black background with green text, the selection shows up as purple on white. I don't want the indicator to be selected at all. It just looks ugly when switching tabs. I suppose I could use SetActiveCtrl to point to a dummy control or something, but is there a simple way to cure this?
0 Kudos
Message 1 of 2
(2,807 Views)
Doug,

If you actually set the Control Mode (from the editor panel or by setting ATTR_CTRL_MODE) to Indicator, then the control won't highlight. Indicators are displayed differently by default, but if you are setting custom colors anyway, your panel should continue to look the same.

If you weren't already tweaking colors and didn't like the look of indicators, another option would have been to leave the control mode as Hot, but set the ATTR_NO_EDIT_TEXT attribute. This prevents the control's contents from being highlighted when made the active control.

Mert A.
National Instruments
0 Kudos
Message 2 of 2
(2,793 Views)