Search the Community
Showing results for tags 'addChild'.
-
I have a template interface elements (blank), I want to use it a few times <vbox name="canvas" export="1" /> <hbox name="blank" export="1"> <editline width="100"></editline> <button><text>OK</text></button> </hbox> WidgetVBox canvas; WidgetHBox blank; canvas.addChild( blank, GUI_ALIGN_EXPAND ); canvas.addChild( blank, GUI_ALIGN_EXPAND ); canvas.addChild( blank, GUI_ALIGN_EXPAND ); canvas.addChild( blank, GUI_ALIGN_EXPAND ); canvas.addChild( blank, GUI_ALIGN_EXPAND ); How to do it, tell me an option?
-
Can I add a child WidgetVBox to a parent Unigine::Widgets::VBox? Example: Gui gui = engine.getGui(); WidgetVBox childVB = new WidgetVBox(gui); Unigine::Widgets::VBox parentVB = new Unigine::Widgets::VBox(); parentVB.addChild(childVB); // Error: Machine::do_callucfv(): "WidgetVBox 02e4f920 internal (12:21:21)" is not a user class If so, how?
- 2 replies
-
- Widget
- WidgetVBox
-
(and 4 more)
Tagged with: