> > 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: > >=20 > > int main(void) > > { > > Window *win =3D new Window(200,200); > > win->begin(); > >=20 > > win->end(); > > win->show(); > >=20 > > CheckButton *check =3D new CheckButton(50, 20, 25, 25); > > win->add(check); > >=20 > > Input *in =3D new Input(50, 50, 100, 25); > > win->add(in); > >=20 > > return run(); > > } > >=20 > > 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? >
>From the HelpView.h : class FL_API HelpView : public Group But neither 'add(InputWidget)' nor 'Group::add(InputWidget)' show a widget. But they do not show anything except free space for a widget. winfried _______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk