On 19 Oct 2012, at 21:39, w. szukalski wrote:
> Ian, I have found the solution. I have made some tests.
> One of these tests was the following program:
>
> int main(void)
> {
> Window *win = new Window(200,200);
> win->begin();
>
> win->end();
> win->show();
>
> CheckButton *check = new CheckButton(50, 20, 25, 25);
> win->add(check);
>
> Input *in = new Input(50, 50, 100, 25);
> win->add(in);
>
> return run();
> }
>
> The solution is adding the widgets to the main window.
winfried,
OK, I'm glad you got it working, though I confess I am puzzled, since what you
are showing appears to me to be the normal behaviour for fltk...?
All widgets must either be created within the "begin/end" scope of their
container widget, or must be explicitly "add"ed to their container widget
(window or group) for them to function, so I'm not sure what is different about
this?
Am I missing something here?
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk