LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Focus rectangle around measurement studio activeX controls

Hello,
when I change a CWKnob (for example) activeX control's value in my program, the control takes the focus and then a rectangle appears around the control. How can I hide this rectangle (without disabling CWKnob control)? Or how can I disable the control unless the control becomes opaque?
Thanks.
0 Kudos
Message 1 of 3
(3,011 Views)
Is this a white rectangle that shows up around the control? You can disable this by double-clicking on the control, and then changing the ShowFocusMode property to "0-cwShowFocusNone"

I hope this helps


Bilal Durrani
NI
Message 2 of 3
(3,001 Views)
Actually, the problem occurs when I load the panel. The activeX control is alone in my child panel and when I load the panel, the focus is automaticaly set on the first control of the panel. And then the focus rectangle appears around my control (even if I set the ShowFocusMode property to "0-cwShowFocusNone"). So I set an other panel to be the active panel just after displaying this child panel in order to avoid this behaviour, and it works.
0 Kudos
Message 3 of 3
(2,984 Views)