Thanks for the replies. I didn't really get the "get" thing you mentioned. I 
tried the grab(this) and even grab(this->window()) but neither did what I 
expected. As you mentioned, it is quite dangerous and all I ended up with were 
non-responsive widgets :(

So, back to the problem. A few more details on my subwindows:
I have several "classes" that inherit from Fl_Double_Window. Each of theses 
classes have widgets (buttons, boxes, etc). I create 1 object for each class 
and add them to my main window:

// Global
Fl_Double_Window MainWin(0, 12, ScreenWidth-6, ScreenHeight-62, "Robotic 
Simulation");
FwdKinematics* FKMenu = new FwdKinematics((int)(ScreenWidth*.12), 
(int)(ScreenHeight*.12));

// Inside a "Set GUI" func
MainWin.add(FKMenu);
MainWin.add(FKPopDH);
MainWin.add(IKMenu);
..

With the "show" method I can make one window appear on top of the other but the 
one that gets all the clicks is the last one added to MainWin.

The first time I show a subwindow I have to use show twice... (if it works, 
don't touch it!). Could that be causing the trouble?

// Unrelated:
Is there a method in FLTK to get the screen resolution and fill those 
ScreenWidth and ScreenHeight variables?
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to