| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Is there an easy way to have a cursor change when it is in a specific window? Up until now I have been using window regions and PtnInRgn() to determine which cursor to display. That means I have to add and subtract from the regions as various windows appear, disappear, and move around. And now I am having a strange problem where I go to move a window, and the cursor changes to the wrong thing as the window is being moved. Somewhere my window region calculation is getting screwed up.
>Take a look at the kEventWindowCursorChange event in CarbonEvents.h (available in Mac OS X and >CarbonLib 1.5 and later). I would say this would be the preferred method to use.
In Carbon.h it is not clear: By responding to that message it seems like you could change the cursor over a particular window--but if you want it to change back to the arrow when the user leaves the window, do you have to catch that message on *all* your other windows and set it back?
| References: | |
| >Re: cursors in windows (From: Bob Sabiston <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.