[wx-dev] Re: CVS: [RR] wxWindows/src/gtk window.cpp,1.641,1.642

Robert Roebling robert at roebling.de
Sat Sep 2 04:55:12 PDT 2006


> RR> >  AFAICS GTKUpdateCursor() does nothing if the window is not realised
> RR> 
> RR> I know, but the question is if the cursor is set later in 
> RR> that case.
> 
>  It should be set from OnInternalIdle() unless I'm missing something.
> 
>  BTW, I did read your comments about (re)setting the cursor during idle
> time but it still looks to me like there should be a better way to do it.
> Override the cursor all the time like this just doesn't seem right and it
> also consumes a noticeable amount of CPU when you have a lot of controls.
> If I understand the problem correctly, it should be enough to set anew the
> cursor for all children when the parent cursor changes, shouldn't it?

I have written that code years ago and back then, just setting
the cursor for a window didn't work because its child windows
somehow inherited the cursor, if I remember correctly. I would
welcome a change that would make the idle code superfluous.

  Robert





More information about the wx-dev mailing list