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: kEventWindowCursorChange



On mercredi, ao{ 27, 2003, at 01:30 Europe/Paris, Bob Sabiston wrote:

Hello,
Does anyone use this kEventWindowCursorChange event? I would like to use it to have the cursor change when it is over my main window, but it doesn't seem to be working. Here is how I installed it.

static EventHandlerUPP CursorUPP = NewEventHandlerUPP(CursorHandler);
EventTypeSpec CursorEventType = {kEventClassWindow,kEventWindowCursorChange};
InstallWindowEventHandler (myWindow, CursorUPP,1, &CursorEventType, NULL, &WindowCursHandler);

It doesn't seem like the handler gets called when I move into the window. Any suggestions for things to look out for with this event?

I use this event and I receive it correctly.

I don't really know if that makes a difference, but my window has the kWindowStandardHandlerAttribute attribute, and uses a tracking region in order to catch kEventMouseEntered and kEventMouseExited events. Maybe this tracking region is also needed for the kEventWindowCursorChange....

Jerome
_______________________________________________
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: 
 >kEventWindowCursorChange (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.