Hi.
I'm having troubles with FL_Tabs (see the source code at the end of this
message). I'm using Windows XP SP3+ MingW with gcc 3.4.5 + FLTK 1.1.9 +
Code::Blocks 8.02.
In the second tab the input seems disabled and I cannot understand why... the
test program provided with fltk zip compiles and works perfectly, but I cannot
see any noteworthy difference with my code.
Can you please help me?
Thanks in advance,
Marcello
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Tabs.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Input.H>
#include <FL/fl_ask.H>
#include <FL/Fl_Box.H>
int main (int argc, char ** argv) {
Fl::scheme("plastic");
fl_message_font(FL_HELVETICA, 12);
Fl_Double_Window *window =
new Fl_Double_Window(600, 400, "My Tab Test");
Fl_Tabs *tabs = new Fl_Tabs(10, 10, 580, 380);
tabs->selection_color(FL_LIGHT2);
tabs->box(FL_PLASTIC_UP_BOX);
{
Fl_Group* tab1 = new Fl_Group(10, 35, 580, 350, " tab 1 ");
tab1->selection_color(FL_DARK3);
Fl_Box *label4 = new Fl_Box(30, 325, 100, 20, "type here:");
label4->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
Fl_Input *text = new Fl_Input(110, 325, 320, 20);
text->align(FL_ALIGN_TOP_LEFT);
tab1->end();
}
{
Fl_Group* tab2 = new Fl_Group(10, 35, 300, 180, " tab 2 ");
tab2->selection_color(FL_DARK3);
Fl_Box *label4 = new Fl_Box(30, 290, 100, 20, "type here:");
label4->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
Fl_Input *text2 = new Fl_Input(110, 290, 320, 20);
text2->align(FL_ALIGN_TOP_LEFT);
tab2->end();
}
window->end ();
window->show (argc, argv);
return Fl::run();
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk