The fact that they are getting the focus in the first place probably
means you have "Full Keyboard Access" switched on in the Universal
Settings system preference panel.
I don't believe RB buttons etc "know" about the setfocus method
outside of the tab order context. You may be able to work something
with Carbon Events, but I'm not sure.
Basically, the only controls you can .setFocus to are those that have
the "AcceptFocus" property, at least in my limited experience.
All I can suggest is that you overlay the controls with a canvas
control, and set it's acceptFocus and useFocusRing properties to
true, then trap for key down events etc in the Canvas and feed them
through to the control.
- Tom
On 09/03/2006, at 1:35 PM, Bob Gordon wrote:
Hello.
I have several bevel buttons (a couple as menus) in a
window.
When I tab through them, the certainly appear to get
the focus (they respond to the space key being
pressed, they are highlighted). However, I cannot seem
to set the focus in code. Is this the way these are
supposed to work? It makes little sense.
It would be nice if they got focus and keydown events.
Suggestions?
-Bob Gordon
OSX 10.4.5 2006r1 1 G RAM 1.25 GHz PowerBook Speed is acceptable.
Now Available
The Book of Fictional Days 2006
A Strictly Limited Edition
For Information email [EMAIL PROTECTED]
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
All questions and answers unless otherwise stated are in Relation to
Mac OS X 10.4 and later.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>