childwindow

Started by Soul, 03 May 2014, 16:26:12

Soul

Hey, i want use childwindow to my mapeditor but i don't know how i can add to childwindow other widgets, something like buttons and sliders, any1 can show me how use it?
thanks :)

texus

When creating a button you pass its parent. So normally you have a line like this that will add the button to the gui.
tgui::Button::Ptr button(gui);

The only difference is that instead of the gui you now just pass the child window.
tgui::ChildWindow::Ptr child(gui);
tgui::Button::Ptr button(*child);

Soul

GEAT!, thanks so much :), now i can end my map editor :D