Hello,

I am implementing a class inheriting from FL_Gl_Window, that will be the main 
class/window of my project.

In the Init method of this class (it is not the constructor), I create all the 
children widget that have to be display in this window.

But my menubar is not visible, I don't know why
Is there any obvious error in the code below?

Also, I wonder if there is a method to redraw all the children widget of a 
given window?

Finaly, is there some documentation in the display order when 1-2 widgets are 
overlapped...

Thanks a lot,
Loic

PS: Here is the Code
        this->begin();
        menubar = new Fl_Menu_Bar(0,0,w(),20);
        menubar->add("&File/&Open Files");
        menubar->add("&File/&Save Configuration");
        menubar->add("&File/Save Configuration As...");
        menubar->add("&File/Save Screenshot");
        menubar->add("&File/Save Screenshot As...");
        menubar->add("&File/&Exit",0,(Fl_Callback*)exit);
        menubar->add("&Views/&Menu") ;
        menubar->add("&?/&About FROG Displayer",FL_F + 1, 
FROG_Displayer::help_cb_stat,this) ;
        menubar->add("&?/&Check for Updates") ;
        menubar->callback(FROG_Displayer::menu_cb_stat,this);
        menubar->show();
        menubar->redraw();

        this->begin();
        ViewScreen = new FROG_View_Screen(0,20,w(),h()-20,"FROG 
Displayer_Main_Screen");
        ViewScreen->resizable(ViewScreen);
        ViewScreen->show();
        ViewScreen->redraw();

        this->end();
        this->resizable(this);
        this->show();
        this->redraw();

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to