Matthias wrote:

> Yes, that can happen. I suggest that you write your own handle
> function and use FL_ENTER and FL_LEAVE to set or reset the cursor shape.

 That is for all widgets and windows (other than main) which preserve the 
unintended old temporary settings?! Well, it wouldn't be so hard to write a 
cursor-protected Fl_Window class and to assign all application windows to it, 
but for the widgets I guess the amount of work would be much higher. I would 
more likely use the other tip:

 Michael Sweet wrote:

> fl_cursor() sets the cursor in the current context.
> Fl_Window::cursor() sets the cursor in the current window.
>
> You probably want to use the latter, or set/restore the cursor as
> part of your widget class (in response to FL_ENTER/FL_LEAVE events...)

 If I got well the point, it would be easier to use main_window_->cursor(...) 
and leave everything else unchanged.

 Thank you both for your help.

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

Reply via email to