> Is there a way to know if the value (or some part of it) of 
> an Fl_Input widget is selected (hilighted) or not ?


I think you work that out by comparing the ::position() and ::mark()
values for the widget.

int Fl_Input_::position() const 
int Fl_Input_::mark() const 

The input widget maintains two pointers into the string. The "position"
is where the cursor is. The "mark" is the other end of the selected
text. If they are equal then there is no selection. Changing this does
not affect the clipboard (use copy() to do that). 






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