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: cursors in windows



What OS do you need to support?

If Jaguar and later, then check out the mouse tracking regions.

Otherwise you can install mouse moved handlers on a window and the OS will
only send you events when the mouse is over that window and its front most.
It'll take care of all the window region manipulation.

Bryan



> From: Bob Sabiston <email@hidden>
> Date: Mon, 18 Aug 2003 15:54:31 -0500
> To: email@hidden
> Subject: cursors in windows
>
> Hello,
> 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.
>
> Is there a simpler way? Thanks!
> Bob
> _______________________________________________
> carbon-development mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/carbon-development
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.

References: 
 >cursors in windows (From: Bob Sabiston <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.