Zoltán Lengyel schrieb: > I am not sure what to do with this source tough. As it is, it has the > following errors: > > *main.cpp(99) : error C2653: 'Fl_Dialog_Window' : is not a class or > namespace name
Yes, the code comes from a class derived of FL_Window (class Fl_Dialog_Window: public Fl_Window) and Vollbild() is a member funktion of this class. > main.cpp(113) : error C3861: 'resize': identifier not found So resize() calls the member function of Fl_Window. If you want to use the code for standalone function, you need to pass a pointer to the window you want to make fullsrcreen and then call pWindow->resize(). > main.cpp(126) : error C2065: 'm_x' : undeclared identifier > main.cpp(118) : error C2065: 'm_y' : undeclared identifier > main.cpp(122) : error C2065: 'm_w' : undeclared identifier > main.cpp(123) : error C2065: 'm_h' : undeclared identifier These are members initialised in constructor of Fl_Dialog_Window with initial values of x, y, w, h. They are ment to restore fullscreen window to original position, when leaving fullscreen mode. You can replace them by constant values, save them as static values, when going to fullscreen or push them to a data structure, where you can find them by window pointer. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

