Loic wrote:
> 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...
I've never considered their drawing order, but would suspect that
they're either drawn in the order of definition or in some undefined /
random order. I've only ever relied on the fact that children are drawn
after their parents.
Also, realize that the box type determines transparency, etc.
>
> 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();
Why this second call to begin()? I suspect it confuses things.
> 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