According to the Dictionary, I should be able to focus on any object. However, whenever I try to focus on a button (plain, or popup, or option), I get the error "focus: not a valid control".
Is this another one of those things that the Dictionary says should be possible, but actually isn't?
Can't focus on a button
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Can't focus on a button
Is the button's traversalOn property set to true?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Posts: 235
- Joined: Thu Jul 01, 2010 11:50 am
Re: Can't focus on a button
A popup menu's traversalon is set to true by default. A regular button's traversalon isn't, and I probably didn't check the default since I probably thought all buttons would be the same after checking the default of the popup. So I thought that I still had a problem with the popup, but I'm able to focus the popup just fine now. I don't know why I couldn't before. So unless I can reproduce the failure in the future, this issue is solved. Sorry for the (probably) false alarm.