LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to eliminated dotted line around selected GUI control.

When a control is selected, LabWindows/CVI draw a dotted line around the control text, graph, strip chart, etc. I find this anoying. Is there a way to disable the dotted line?
0 Kudos
Message 1 of 4
(3,803 Views)
Hi,

The dotteed line in the control is the mechanism that CVI uses to identify what control has the focus and will accept kleyboard input. There is no built in way to disable these active control indicator; probably the best workaround is to create a dummy control that will "hold" this box for you. Basically have a control in the panel that is in a area not visible to the user; then constantly assign that control to be the active control; you could call SetActiveCtrl (...) at the end of every callback to get the focus back to it's hidden place.

I hope this helps.

Regards,

Juan Carlos
N.I.
Message 2 of 4
(3,803 Views)
If the control has a label, then the dotted line is around the label when the control has the focus. If the control doesn't have a label, then the dotted line is around the whole control when it has the focus.
To get rid of the dotted line around the control, give the control a label and if you don't really want the label, move it off the panel (possibly with negative coordinates).
Message 3 of 4
(3,803 Views)
Juan, Thanks for the help. However, I was hoping that there was a better solution. I understand that the dotted line identifies the control with focus, but why does CVI choose to do this when no other windows program (that I am aware of) does this? It is typically clear which control has focus when you see a cursor in an entry box, or a line is hilighted in a list box. To be honest, the dotted line around the label doesn't bother me. However, the dotted line around the entire graph control is much more noticable and gets in the way of other adjcent controls. I think I will try your SetActiveCtrl() suggestion for that. Thanks again.

jaws
0 Kudos
Message 4 of 4
(3,803 Views)