*

Soul

  • *
  • 11
    • View Profile
childwindow
« on: 03 May 2014, 16:26:12 »
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

  • *****
  • 1161
    • View Profile
    • Texus's Blog
Re: childwindow
« Reply #1 on: 03 May 2014, 16:30:21 »
When creating a button you pass its parent. So normally you have a line like this that will add the button to the gui.
Code: [Select]
tgui::Button::Ptr button(gui);
The only difference is that instead of the gui you now just pass the child window.
Code: [Select]
tgui::ChildWindow::Ptr child(gui);
tgui::Button::Ptr button(*child);

*

Soul

  • *
  • 11
    • View Profile
Re: childwindow
« Reply #2 on: 03 May 2014, 16:51:24 »
GEAT!, thanks so much :), now i can end my map editor :D