> I need to add a button to a previously opened window in a 
> different method. I was able to resize the window, but no 
> button appears on the window.


If the window was created elsewhere, you probably need to "begin" the
window object so that fltk knows *which* widget to add your new button
to...

> i.e. in one method I am opening a new window with 'new' 
> command and I need
> to access it and add a button in another method.
> Doing-
>   Fl_Double_Window* o1;
>   o1 = m_fileWindow;

    o1->begin(); // Add this line here...


>   { Fl_Button* o = new Fl_Button(30, 200, 40, 20, "OK");
>     o->down_box(FL_DOWN_BOX);
>   }
>   o1->end();
>   o1->size(530, 570);



SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to