Himadri Sarkar wrote:
> I have more than i window in my GUI, then how does fltk associate the
> various widgets
> with a particular window, how can i explicitely associate a particular
> widget say a box
> to a particular window, using the window object.
In addition to Don's suggestion, normally one creates
the widgets (like boxes) between window->begin() and window->end(),
eg:
// create first window
win1 = new Fl_Window(..);
win1->begin();
box1 = new Fl_Box(..);
button1 = Fl_Button(..);
win1->end();
// create second window
win2 = new Fl_Window(..);
win2->begin();
box2 = new Fl_Box(..);
button2 = Fl_Button(..);
win2->end();
This same technique works in both FLTK1 and FLTK2.
You can use this same technique later in the application,
to easily add widgets to existing windows.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk