On 11.08.2012, at 18:56, Herman <[email protected]> wrote: > What Greg meant is this (in your case, where you obviously have a > pointer to a Fl_Window class): > > pWindow->x() > pWindow->y() > pWindow->w() > pWindow->h() > > pWindow->position(x,y) > pWindow->resize(x,y,w,h) > > Cheers, Herman > > > On 08/11/2012 06:22 PM, Coder wrote: >> Than I get: >> >> error: request for member 'x' in 'window', >> which is of non-class type 'Fl_Window*'. >> >> >> And for the position(): >> >> error: request for member 'position' in 'window', >> which is of non-class type 'Fl_Window*'.
In the original post, you mentioned that you do not want to do any C++ Class stuff. I am afraid that classes are the most basic concept of the C++ language. FLTK uses a subset of the capabilities of C++. Classes is one of them. You can solve a lot of user interface projects without deriving from a class - something that a lot of new C++ users seem to shy away from. However, you will not get around learning the basic concepts of classes. Please send us the source code that you have up until now and we will try to help you implementing what you need. If you are not at that point yet, I suggest you use the "hello" example from the FLTK source code as astarting point. - Matthias _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

