>
> {
> 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 ");
You seem to have this group the wrong size - it is too small...
> 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);
... and as a result, this input is outside the bounds of its parent
group, and therefore will never get the focus...
> text2->align(FL_ALIGN_TOP_LEFT);
> tab2->end();
> }
>
> window->end ();
> window->show (argc, argv);
>
> return Fl::run();
> }
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