Page 1 of 1

How to elaborate the GUI using GUI Editor

Posted: Tue Nov 02, 2010 4:18 am
by wsw1231
I have built a GUI using the GUI Editor and save the xml file.

By using loadGUI (), I can get the content of the xml file and the program will generate the corresponding GUI.

Now, I want to further edit the GUI using code.
For example, I built a menu bar in GUI editor, after loadGUI(), it will be shown. Now, I want to add submenus to it but I do not know how to refer to the menu (calling object) .

Could someone please help :(

Posted: Tue Nov 02, 2010 11:59 am
by wsw1231
why nobody helps -,-
Is there anything that I need to further explain?

Posted: Tue Nov 02, 2010 12:59 pm
by Virion

Posted: Tue Nov 02, 2010 1:49 pm
by wsw1231
In tutorial 09, the config.xml loaded does not contain any GUI.
Also, that config.xml is different from the guiTest.xml generated by the GUI Editor.

So, I am afraid tutorial 09 cant help me

Posted: Tue Nov 02, 2010 1:53 pm
by Virion
Now, I want to further edit the GUI using code.
Now, I want to add submenus to it
tutorial 9 shows you how to add sub-menu. you can give the main menu an id and later on search for the menu by referring to the id and then add sub-menus to it. i hope i understand your question correctly. is that what you want?

Posted: Wed Nov 03, 2010 2:32 am
by grumpymonkey
give an id to the menu, then find the gui element in your c++ code and edit it from there