On 25.08.2012, at 21:40, Marc Cunning <[email protected]> wrote:

> Hi,
> I need to create dynamically (at run-time with callbacks) widget groups,
> but when adding buttons and sub-windows in the same group,
> the buttons are shown ok, but the window not. What's wrong here..?
> Below, Using the program example provided by greg, with an little variant,
> to sample this question.
> Any idea..?

In FLTK, you normally create your widgets from the outside in. You start with 
the main window, then add groups, and then add widgets to those groups, using 
end() to go back up in that hierarchy. Using a window inside a window is the 
exception and only needed if you require a native window ID, for example for 
OpenGL context or for media players. Instead, you should use a group.

You can us a window, but if you add it to the group later, you need to call 
show() on it.

 - Matthias

PS: assuming this is 1.3. 
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to