Hi,
I was about to try Fl_Tabs, but it somehow deactivates all my widgets.
Here's my example:


void cb(Fl_Widget *v, void* o)
{
        exit(0);
}

class WIN : public Fl_Window
{
public:
        Fl_Tabs *T;
        Fl_Group *G,*G2;
        Fl_Button *B;
        Fl_Input *R;

        WIN(int w, int h, const char *I = 0)
                : Fl_Window(w,h,I)
        {
                begin();
                        T = new Fl_Tabs(0,0,WIN::w(),30);
                        T->begin();
                                G = new Fl_Group(0,30,WIN::w(),WIN::h() - 
30,"Label1");
                                G->begin();
                                        B = new Fl_Button(50,100,60,60,"OK");
                                        B->callback(cb,this);
                                G->end();
                                G2 = new Fl_Group(0,30,WIN::w(),WIN::h() - 
30,"Label2");
                                G2->begin();
                                        R = new Fl_Input(50,100,100,30);
                                G2->end();
                        T->end();
                end();
                show();
        }

};

int main()
{
        WIN *W = new WIN(640,480,"Tabs");


        return(Fl::run());
}


Everything with the Tabs themselves is fine except the Fl_Input and the 
Fl_Button does not work. If I comment the Fl_Tabs out, both of them is working. 
So what am I doing wrong?
Any help is greatly appriciated!
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to