simon schrieb:
>> I forgot to ask another question.  Is there anything in FLTK that
>> will return the position/coordinates of the mouse when it is on top
>> of a button or any FLTK component for that matter.
> 
> I found the answer to this, using event_x() and event_y(); even
> though event_x() seems to be acting funy, but I think I can debug it.

You missed to find those events:
# FL_ENTER - The mouse pointer entered a widget.
# FL_LEAVE - The mouse pointer left a widget.

If overwriting handle() of a button and using these events, you can 
react to "mouse on top of a button" without dealing with positions.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to