11-18-2020 09:21 AM
I want to open a tdms file out of a folder that contains TDMS files. I have the list of files in a string array indicator. I want to click (or double click) on the indicator and have that file load. I can do everything here except get the value of the cell that was clicked on.
I was expecting "Index" to be the index of the cell that was clicked but apparently not. It always stays at zero regardless of what is clicked. When I click my timestamp test does update so I know the event loop is executing.
How to get the value of the cell clicked in a string array indicator?
11-18-2020 09:29 AM
11-18-2020 09:56 AM - edited 11-18-2020 09:57 AM
That seems to be the ticket!
Value gives an array of indices depending upon if single or multiple selection mode is enabled. If single then the array only has one value.
11-18-2020 12:30 PM
So one more follow up question. How to detect a change in focus from one element to another using the arrow keys?
To reproduce:
1) Click in the listbox
2) Use the arrow key up or down to move to a different row.
11-18-2020 12:53 PM
I don't have NXG but on classic, there is a property for Listboxes called Focus Row which seems to be exactly what you want.
Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.
11-18-2020 01:32 PM
@flycast wrote:
So one more follow up question. How to detect a change in focus from one element to another using the arrow keys?
To reproduce:
1) Click in the listbox
2) Use the arrow key up or down to move to a different row.
Once a listbox item is selected, the arrow keys will move the selected entry, thus changing the value of the listbox AND triggering a "value changed" event. No need for properties. (Classic LabVIEW. Have not tried in NXG)