LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove "Highlight" of Key Focus

Is there a way to remove the "highlight" that setting the key focus on a control brings about?

I want the key focus to be on a button, but I have edited the control, and now the black box that gets around it is ungainly, and was wondering if there was a way to remove it?
0 Kudos
Message 1 of 6
(4,777 Views)
Hi Novatron,

I'm not aware of any setting that will remove the visible border around the object that's in focus. The only thing you can do is make sure that the object will never get in focus by right-clicking the control and then choose "Advanced » Key navigation » Skip this control when tabbing".

Has anyone else created a programmable workaround for a similar issue?
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 2 of 6
(4,745 Views)
Thanks for the reply Phillip.

The only thing I've been able to do as a workaround is to edit the 3D effect of the button (resize it), so that the overall border of the button isn't so prohibitively large as to make the black box big enough to cause the control to be grossly unattractive.

The box remains, but it's not as ugly as it once was.  The control looks slightly different now though, as it's lost some of the 3D effect...

I do however NEED the button to be in focus, as operators like pressing enter more than using the mouse.  Can't say that I really blame them though.
0 Kudos
Message 3 of 6
(4,733 Views)
Hello Novatron,

have you tried to use key navigation settings (right-click on control->advanced->key navigation). There you can also assign the enter-key to a control. But this may lead to other problems as described in the help text of the key navigation window!


Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(4,727 Views)
Thanks for the suggestion Gerd. 

I had tried that earlier...  The only problem there is that having the "enter" key assigned to the control (the only boolean control) places key focus on it automatically, so using that method we're back to square one!
0 Kudos
Message 5 of 6
(4,722 Views)
Right after sending that last message something occurred to me.

It took some messing about, but I used a flat frame, coloured the same as the background colour, and placed it around the control, where the black box would be, then grouped the controls so no moving around could screw up the alignment.

It's not perfection, but it works!
Message 6 of 6
(4,719 Views)