> #include<FL/Fl.H>
> #include<FL/Fl_Window.H>
> #include<FL/Fl_Input.H>
> #include<FL/Fl_Output.H>
>
> int main() {
>
>       Fl_Window win(400, 600, "TestWindow");
>
>       win.begin();
>
>       Fl_Output test(50, 50, 300, 500, "Test");

This is wrong, you must create widgets dynamically when inserting them 
to a window. This might work better:

        Fl_Output* pO_Test= new Fl_Output(50, 50, 300, 500, "Test");

It is not necessary to keep pO_Test, because the window grabbed the 
Fl_Output, but you can use it for more initialisation, e.g. setting 
pO_Test->callback(), or something like that.
_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to