> ok, and how i do to extract the position of mouse? x and y coords?

Several options are provided - check the docs, in particular
Fl::event_x() and Fl::event_x_root() would be worth reading up on.


> And if I want to change the dimension of rectangle?

Just change the call to fl_rect(xp, yp, 100, 100, FL_RED); in the draw
method, the two "100" values are the width and height of the rectangle.

You might get some tips from checking the demo examples in the test
folder of your fltk distribution, or by checking Greg's examples page:

http://www.seriss.com/people/erco/fltk/






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