Can't focus on a button

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
MichaelBluejay
Posts: 235
Joined: Thu Jul 01, 2010 11:50 am

Can't focus on a button

Post by MichaelBluejay » Thu Oct 21, 2010 5:24 am

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?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Can't focus on a button

Post by FourthWorld » Thu Oct 21, 2010 4:24 pm

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

MichaelBluejay
Posts: 235
Joined: Thu Jul 01, 2010 11:50 am

Re: Can't focus on a button

Post by MichaelBluejay » Thu Oct 21, 2010 10:24 pm

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.

Post Reply