Re: Focus?
Subject : Re: Focus?
From: Laurence Harris <email@hidden >
Date: Mon, 26 Mar 2007 08:57:06 -0400
Delivered-to: email@hidden
Delivered-to: email@hidden
On Mar 27, 2007, at 4:48 AM, Matthew Allen wrote:
How do I get the handle for the control that currently has the
keyboard focus?
GetKeyboardFocus? Maybe?
From Controls.h:
extern OSErr
GetKeyboardFocus(
WindowRef inWindow,
ControlRef * outControl)
AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER;
Read those headers.
There may also be a new API in HIView.h.
Larry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden
References:
>Focus? (From: "Matthew Allen" <email@hidden>)
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.