LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disappearing Key Focus

Hello everyone,

 

I am developing a medium-to-large sized project and I have started to notice some weird behaviour in the UI. The closest topic that I could find, relating to my problem, was https://forums.ni.com/t5/LabVIEW/Key-Focus-lost/td-p/474059. They experienced a similar issue, where controls lost their focus, but it was due to programmatic setting of tip strips on XControls - not quite what I am experiencing.

 

In my application, most UI elements are constantly being updated via references in a dedicated loop - none of which involve setting key focuses/tip strips. Only values, disable/enable and colours. Not sure if this makes a difference but the UI controls are placed in nested tab controls.

 

Prior to setting up this topic, I tested individual VIs to see whether they would affect the focus but did not come up with anything.

 

So my question is - has anyone experienced this before? Any potential solutions? I have also attached an example VI to showcase my issue as I cannot upload the whole project.

 

All help is much appreciated.

0 Kudos
Message 1 of 4
(3,190 Views)

I don't understand your example.  You say the issue is that the control is losing focus but you are explicitly setting the keyfocus to false.  What are you expecting this to do because it is doing exactly what you told it to do? 

aputman
0 Kudos
Message 2 of 4
(3,181 Views)

I think I answered a similar question for a situation where the key-focus was being applied to a control on a hidden (i.e. not selected) tab page.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 4
(3,178 Views)

@aputman wrote:

I don't understand your example.  You say the issue is that the control is losing focus but you are explicitly setting the keyfocus to false.  What are you expecting this to do because it is doing exactly what you told it to do? 

I was simply trying to show what I am experiencing ON SCREEN, not the block diagram.

 

I think I answered a similar question for a situation where the key-focus was being applied to a control on a hidden (i.e. not selected) tab page.


I'll take another look. Thanks.

0 Kudos
Message 4 of 4
(3,125 Views)