02-17-2017 09:03 AM
I am setting up a configuration dialog when my vi opens. All fields are included in the tabbing order, however, when I get to the file picker, I am unable to activate the browse button using the keyboard. Is there a setting for this or a way to include it in the tabbing order for when a mouse is not available?
To be clear, the cursor enters the file path field and I can type in there, but I can not get it to focus on the browse button.
Any help would be appreciated.
Solved! Go to Solution.
02-17-2017 09:43 AM
That's a good question. I don't see where you can get a reference to the browse button. (LV2012)
You could turn off the browse button associated with the file path control and make your own button that will popup a browse window.
02-17-2017 10:05 AM
> Is there a setting for this or a way to include it in the tabbing order for
> when a mouse is not available?
Create a separate button to replace the built-in button.
02-17-2017 10:07 AM
Thank you. I knew this was an option, but was hoping there was a built in way to do it.
02-17-2017 10:40 AM
Or you can use a custom run-time menu with Ctrl+O shortcut.
The keyboard shortcut will work even if the menu is hidden.
02-17-2017 11:31 AM
Although I was able to get a reference to the Browse button and mess with its properties, I couldn't get it to take focus when tabbing, nor could I set toggle key binding for it.
02-17-2017 11:40 AM
@paul_cardinale wrote:
Although I was able to get a reference to the Browse button and mess with its properties, I couldn't get it to take focus when tabbing, nor could I set toggle key binding for it.
How did you get a reference to it? Is that something added in later versions? If you can do that, you could tab into the path control, hit Enter (or some other key) and use a key down event to toggle the button.
02-17-2017 11:52 AM
I used the Selection Change Event:
Then when I click on the Browse button (in edit mode), "SelList" spits out the reference.
I don't know a non-interactive way to get a reference to the Browse button.
02-17-2017 12:12 PM
Will this help?
02-17-2017 12:15 PM
Or this.