LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

text ring display problems

I am having problems with a text ring control. Everything works fine in developement, but when I build the vi and run the exe the text ring no longer functions correctly. The up/down arrows still cycle through fine, but if I click on the text ring itself to get the popup list to select from, it immediatley disappears, almost like something else is getting focus. This locks out the user from using the popup list in the text ring. I have included an example exe and assocaited vi's. Anyone know what is going on?
0 Kudos
Message 1 of 3
(2,695 Views)
Hi Abe,

I had trouble running your example correctly in the development environment. I was seeing what you reported in the exe version.

I believe the issue is a subtle one. This is what I suspect.

The event structure and the invoke node both run in the "User Interface" thread, which is single threaded.

When the invoke node executes, your menu selection is stopped.

I have modified your top level VI (see attached) to prevent the invoke node from executing while you are using the text ring.

I added;
1) A case structure now prevents the invoke node from executing while the text ring has key-focus.
2) A mouse down on the text ring assigns key-focus to the text ring.
3) A mouse up event removes key-focus from the text ring.
4) The value ch
ange event also emoves key-focus from the text ring.
5) Aproperty node that determines if the text ring has focus.

The example is sloppy, and you may choose to use another method to prevent the invoke node from executing while doing your selection, but this is just a quick "push" to see if I can help.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 3
(2,695 Views)
Thanks, that does work. I will continue to see if I can come up with a more elegant approach, but for now this will work.
0 Kudos
Message 3 of 3
(2,695 Views)