07-24-2017 09:49 AM - edited 07-24-2017 09:50 AM
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.
07-24-2017 09:59 AM
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?
07-24-2017 10:03 AM
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
07-25-2017 01:25 AM - edited 07-25-2017 01:26 AM
@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.