LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to edit control tab navigation highlight appearance

Hi guys,

 

I have some black buttons over a black background and when I navigate to them with Tab, the usual black square that highlights the control is invisible.

 

Is that black square editable in some way? It would be nice to give it the same appearance as when you hover over the button with the mouse. Is the Key Focus property the only way to achieve this?

 

Thanks in advance!

Best regards,
Néstor

LabVIEW 2017 + Windows 10
0 Kudos
Message 1 of 8
(2,028 Views)

Hi JoePerkins,

 

Key Focus should holds good for you to highlight button borders, Any Reason why you need some other options other than Key Focus.

 

If you want to highlight only button borders, hope key focus is the better option.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 8
(1,996 Views)

Well, if that appearance could be customized in the control, I would avoid adding code.

Best regards,
Néstor

LabVIEW 2017 + Windows 10
0 Kudos
Message 3 of 8
(1,989 Views)

Just change the co lour of the control, that should help

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 4 of 8
(1,984 Views)

Of course, but that's not an option.

Best regards,
Néstor

LabVIEW 2017 + Windows 10
0 Kudos
Message 5 of 8
(1,979 Views)

Why is "black on black" something you can't change?  Seems like a silly requirement to me.  (I know you're constrained by this silly requirement, so I'm not disparaging you.)  Can you make it a custom control/typedef and recolor the border?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 8
(1,955 Views)

The idea is to not break the (questionable) color design of the application, so I'm stuck with black on black.

Best regards,
Néstor

LabVIEW 2017 + Windows 10
0 Kudos
Message 7 of 8
(1,914 Views)

I would consider adding another disabled button or indicator with the color you want which would be in the background and then positioning it at the correct location and size to serve as the border.

 

The tricky part is knowing when to position it. You could use mouse and key down/up events on the FP to trigger a search through all of the controls to see which one has the key focus. If you put all of this in a subVI, then it even doesn't make your code very ugly and you can use it for multiple VIs. You would just need to stop the VI.

 

Also, here is a previous discussion on the topic  with links to some other related discussions (although they're not exactly the same as what you want):

https://forums.ni.com/t5/LabVIEW/Changing-Key-Focus-Color-and-or-Size/m-p/279466


___________________
Try to take over the world!
0 Kudos
Message 8 of 8
(1,892 Views)