Adding widget onto a widget
Added by Joseph Nalluri over 9 years ago
Hello,
In line with the same issue as here - http://redmine.webtoolkit.eu/boards/2/topics/10955
I was wondering if there is a possible way of adding widget onto a widget.
Like in case, of WCollapsible panel, can I add some widgets beside the Title Text on the panel?
Thanks,
Joseph
Replies (2)
RE: Adding widget onto a widget - Added by Georgiy Gluhoedov about 9 years ago
Hi Joseph.
Wt::WPanel *panel = new Wt::WPanel();
panel->setTitle("A panel");
Wt::WContainerWidget* container = panel->titleBarWidget();
container->addWidget(new Wt::WPushButton("MyButton"));
Br. Georgy