trouble changing cursors
Robert J. Lang
robertlang at earthlink.net
Tue Aug 8 12:03:09 PDT 2006
I am using a wxGLCanvas with wxMac CVS HEAD (2.7.0), and also find that when
the mouse leaves the window via the side and enters another of my
application's windows (positioned next to the wxGLCanvas), the call to
event.SetCursor in the leave-window-event handler is not invoked -- if I
scoot the cursor quickly. If I move the cursor slowly out of the window, or
move it out the bottom (where it overlaps the desktop), then the call is
invoked and the cursor changes properly.
Robert
on 8/8/06 11:53 AM, Eric at Eric.Medlin at gmail.com wrote:
> Even changing the mouse cursor on the onleave event doesn't fix this
> problem. Anyone else notice this?
on 8/2/06 1:12 PM, Eric at Eric.Medlin at gmail.com wrote:
> I have a wxFrame (my top level frame) that contains a horizontal
> wxBoxSizer on it. Then I have a wxGLCanvas set to option 1, wxExpand
> (set in XRCed). The other item in the wxBoxSizer is a wxFlexGridSize
> followed by alot of stuff in that sizer. My problem is when I set the
> cursor for the wxGLCanvas it sets the cursor, so that when my mouse is
> over the wxGLCanvas it is what I set it to, but when I move the mouse
> off my application it stays set to whatever I have it set to. It does
> not change back to the default cursor. It will change back to an arrow
> if click on the menu bar or move the cursor off the right side of my
> app so that the cursor has to cross over the stuff in the
> wxFlexGridSizer or move it off the bottom of my app crossing the status
> bar. How can I get it to change back to the arrow when it leaves the
> wxGLCanvas but does not cross over anything else in my app. This is on
> OSX running wxWidgets version 2.6.0.
More information about the wx-users
mailing list