On 04.06.2008, at 10:27, MacArthur, Ian (SELEX GALILEO, UK) wrote:

>
>> I would like to change the cursor type in my application.
>>
>> I'm using a code like this:
>> main_window->cursor(FL_CURSOR_HAND);
>> But it doesn't work.
>>
>> Could you give me suggestion about this problem?
>
> You have not shown us enough context for your code, but I suspect that
> you are trying to change the cursor type *before* the window actually
> exists. That doesn't work on most system - you need to show() the  
> window
> and have it mapped by the WM before you can change its cursor
> attribute...


It sometimes helps to set the cursor again on FL_ENTER events. This is  
a bit more involved. I'll be happy to explain in case Ian's solution  
does not work.

----
http://robowerk.com/


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to