On Jun 13, 2007, at 1:26 AM, Suja wrote:

>   Fl_Double_Window* o1;
>   o1 = m_fileWindow;
add here:
     o1->begin();
every widget you create after "begin()" will be added to o1
>   { Fl_Button* o = new Fl_Button(30, 200, 40, 20, "OK");
>     o->down_box(FL_DOWN_BOX);
>   }
>   o1->end();
>   o1->size(530, 570);
Also, changing the size of your window will likely move you button  
around. Maybe it is a good idea to resize the window first and then  
add the button. Last point: if you add a widget after you resized the  
group/window, it may be good to call "init_sizes()" on the group ar  
window, so FLTK can recalculate their relation of widgets to each other.

Matthias
----
http://robowerk.com/


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to