On Jul 13, 2007, at 7:52 AM, Suja wrote:

> I am using Fl_Choice->add to add values to Fl_Choice. How do I set
> a default, before the user selects one?
> Thanks in advance.

You set the current value using "value()"

http://www.fltk.org/documentation.php/doc-1.1/ 
Fl_Choice.html#Fl_Choice.value

after adding with - for example - "add()":

http://www.fltk.org/documentation.php/doc-1.1/Fl_Menu_.html#Fl_Menu_.add

You can use the index returned by "add()" directly with "value()".

----
http://robowerk.com/


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

Reply via email to