Is it possible that show() (2nd last line) needs some arguments?

Michael Schmid schrieb:
> Hi!
> 
> After some time getting familiar with FLTK I start to code the real 
> application.
> 
> Below you find (a shortened) piece of code. I can compile the code. But 
> if I execute it, it immediately terminates. Without any error or so...
> 
> But I think "Fl:run();" should wait until the last window closed and 
> returns then?
> 
> What is wrong, i don't get it...
> 
>     //Start Main-Window:
>     {     pMainWin = new Fl_Double_Window(840, 480, "IPRO2");
>         pMainWin->color((Fl_Color)0x0);
>         pMainWin->begin();
>         { //Start drawing buttons of main menu
>         pMainButtonTuning = new         
> Fl_Button(UPPER_BORDER_MAIN_MENU, 37, 124, 37);
>             pMainButtonTuning->image(pPixmapTuningPressed);
>             
> pMainButtonTuning->callback((Fl_Callback*)fCallbackButtonTuning);
>             pMainButtonTuning->when(FL_WHEN_CHANGED);
>         } //End drawing buttons of main menu
>         pMainWin->end();
>     } //Fl_Double_Window* pMainWin
>     pMainWin->show();
>     return Fl::run();
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to