Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keyboard focus in sheets on Utility Windows




On Jun 6, 2006, at 8:07 PM, James Meiss wrote:

I have a (perhaps) similar problem with a small "utility" window that contains a couple of buttons. The window has kEventControlHit and kEventRawKeyDown event handers. I wanted to have the buttons respond to the keyboard (they work fine with the mouse). If I simply switch the window type to Modal or Floating in the nib file, then my Event Handler works fine. However, I make it a utility window, then another window in my application gets the keyboard event, even though it is behind the utility window. Calling SetUserFocusWindow doesn't seem to help.

You might double-check that your utility window is really the user focus window at the time of the keyboard event, by calling GetUserFocusWindow. It sounds like the user focus has moved off the utility window after you put it there.


I guess I don't really understand the concept of "utility window.

A utility window is just a floating window that floats above windows of all applications and remains visible even when its owning application is not active.


-eric

_______________________________________________
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: 
 >Re: Keyboard focus in sheets on Utility Windows (From: James Meiss <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.