FLTK logo

Re: [fltk.general] Default value for Fl_Choice?

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Default value for Fl_Choice? Greg Ercolano Jul 12, 2007  
 
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?

	Use Fl_Choice::value(int val)
	..where val is the index number (1 based) of the item you want picked.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.