Page 1 of 1

Can't focus on a button

Posted: Thu Oct 21, 2010 5:24 am
by MichaelBluejay
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?

Re: Can't focus on a button

Posted: Thu Oct 21, 2010 4:24 pm
by FourthWorld
Is the button's traversalOn property set to true?

Re: Can't focus on a button

Posted: Thu Oct 21, 2010 10:24 pm
by MichaelBluejay
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.