> 1. In MFC to fire mouse events for any window we may use SendMessage.
> Is there any such support in FLTK. If i want to generate 
> mouse click event then what i need to do?

No - fltk does not provide methods for "manipulating" the mouse, so you
need to call the underlying OS methods. However, that's fairly trivial
on all the platforms I have, so shouldn't be a problem. In my code I
just use #ifdef to switch the code between platform builds...


> 2. Is there any support in FLTK to change the cursor position 
> on current window? (i dont want to use SetCursorPos and 
> ClientToScreen).

No, but I've posted a worked example in this list several times, so a
quick search would probably get you up and running.

However... There are significant issues for GUI design regarding moving
the cursor position programmatically. Basically, you shouldn't do it.
In particular, for people (like me) who use graphics tablets or similar
devices with absolute positioning, attempts to move the cursor
programmatically are basically doomed to fail (or worse, get into a loop
where the program and the tablet driver keep jumping the cursor back and
forth between two positions... Nasty...)





SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to