Tab stop

Hi All,
Quick question. I have just opened a couple of my ongoing projects to do a couple of changes and noticed that the popupmenu control no longer tabs into. I’ve got the Allow Tab Stop switch on and have even tried setting it to TRUE when the window that it is on opens.

If I change it to a Combo box it works ok, but this is not the control I want here. Has there been an intentional change (like the idiotic decision to remove borders from list box cells a while ago) or is it a bug?

This is the first time I’ve edited anything on this app for a while so it’s something that has happened since. Can anyone enlighten please?

Thanks,
Barry

You haven’t mentioned what version of Xojo you’re using, or what platform.

But no, it should just work unless your Tab Index value conflicts with another control with the same value?

Just as a test, maybe try adding a button and do Self.myPopupMenu.SetFocus() in the Pressed event and see what happens. Hope that helps you to figure out the issue.

Hi Scott,
Thanks for the reply. The platform is Apple MacOS, latest version and Xojo, also latest version. What I don’t understand then, is that the last time I worked on this it worked and the compiled version has worked without issues.

FWIW, the window in question has 3 text boxes, then a date time control and then 4 popupmenus and finally another text box.

Starting with the first text box it tabs through the second 2, then the date control correctly, but then it tabs back to the first text box. It continues this circle. All tab indexes are correct and all AllowTabStops are set.

BTW, I’m assuming that the test you suggested was to set the focus to one of my popupmenus?
I added 2 buttons, 1 set the focus to one of the text boxes and worked no probs, the other set the focus to the first popup, nogo! For some reason these popups will not accept the focus.

Make sure that Keyboard navigation in the Keyboard settings is switched ON.
If this is switched off the tab-key will only tab to certain controls.

3 Likes

Hi Paul,
Thanks for that - fixed it! What do you know? I’ve never seen that before. I’ve got the latest version of the OS (beta), it must reset that switch during install at some stage.

Anyway, thanks again :slight_smile:

Barry

You can now (accidentally) turn it on/off with shortcut control + F7
In System Settings → Keyboard → Keyboard Shortcuts… → Keyboard you can turn this shortcut off.

1 Like

Thank you @PaulS, for reminding me.

I always forget about that because I like that feature always turned “on”. It helps with using the Xojo IDE.

I should do more testing of my projects with it off, like a typical user.