On Jan 12, 2004, at 8:11 AM, Maya wrote:
> jme::NewAccountDlg::NewAccountDlg()(int w, int h, const char* t)
> : Fl_Double_Window( w, h, t ){
^^ this line creates a double window and keeps it active for the
following widgets to be created until you call end
> Fl_Window* window = new Fl_Window (10,10,300, 180);
^^ This line creates a subwindow in the above window
> window->show ();
^^ This line show the window inside the double window. But unless
you show the double window, nothing will appear in the screen
> window->end ();
> }
>
So either you write this to create a window in a window
> jme::NewAccountDlg::NewAccountDlg()(int w, int h, const char* t)
> : Fl_Double_Window( w, h, t ){
> Fl_Window* window = new Fl_Window (10,10,300, 180);
> window->show ();
> window->end ();
end(); show();
> }
Or this to create two seperate windows
> jme::NewAccountDlg::NewAccountDlg()(int w, int h, const char* t)
> : Fl_Double_Window( w, h, t ){
end(); show();
> Fl_Window* window = new Fl_Window (10,10,300, 180);
> window->show ();
> window->end ();
> }
Or this to create one simple window:
> jme::NewAccountDlg::NewAccountDlg()(int w, int h, const char* t)
> : Fl_Double_Window( w, h, t ){
end();
show();
> }
|