Michael Schmid wrote:
> --> FLTK 1.1.9
> I have Fl_Tabs with several groups in it. And all those groups contain
> several widgets. This works fine!
>
> In one of those groups I have a Fl_Input. Before showing the Fl_Tabs, I
> give the Fl_Input already a initialvalue (by setting value() ). If I
> click on the tab which contains the Fl_Input, everything is fine, but
> there's no value in this Fl_Input! The strange thing is that I don't
> change the value meanwhile (As far as I can see). And I'm also 100% sure
> that the Fl_Input got the value because I tested this with
> "printf(InputWidget->value());".
This works perfectly for me. I changed line #83 in test/tabs.cxx (created by
fluid from test/tabs.fl):
{ // new Fl_Input(140, 130, 100, 30, "input in box2"); //*original*
(new Fl_Input(140, 130, 100, 30, "input in box2"))->value("*TEST*");
The value() appears in tab #2. Does this work for you, too?
If you can't find your problem elsewhere, please post your minimal code
example,
as others suggested already.
Albrecht
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk