> Emil wrote:
> > However, I don't know why but after running my program just the window gets 
> > drawn, with no other widgets.
> > What do I do wrong?
>
>       Needs a begin() and end() in the ctor. eg:
>
> EditorWindow::EditorWindow(int w, int h) : Window(w, h) {
>     begin();  // <-- ADD THIS
>         menuBar         = new MenuBar(0, 0, this->w(), 28);
>         toolsBar        = new Widget(0, 28, this->w(), 34);
>         statusBar       = new Widget(0, (this->w() - 28), this->w(), 28);
>         tabsGroup       = new TabGroup(0, (menuBar->h() + toolsBar->h()), 
> this->w(), (this->h() - (menuBar->h() + toolsBar->h() + statusBar->h())));
>     end();    // <-- ADD THIS
> }

Alright! :-)
Thank you!
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to