Change widget's name

TWal

14-01-2011 23:00:58

Hi,

I'd like to change the name of my widgets.

I have, for example, layout named "Test", and inside, widgets "Hello", and "World". I'd like to rename "Hello" to "Test/Hello", and "World" to "Test/World", to have other widgets named "Hello" or "World" in other layouts. I searched in the documentation, but I didn't find anything.

How can I do that?

Thanks.

PS: Sorry for my English, and if explanations aren't meaningful.

Altren

15-01-2011 01:23:21

loadLayout function have optional prefix as second argument.
MyGUI::LayoutManager::getInstance().loadLayout("Test.layout", "Test1/");
MyGUI::LayoutManager::getInstance().loadLayout("Test.layout", "Test2/");

TWal

16-01-2011 14:19:42

Thanks, that works fine :)