everyday85
15-05-2013 08:34:23
Altren
15-05-2013 11:33:06
UnitTest_PolygonalSkin never was removed and it is still there.
Edit: my bad, it is called UnitTest_Spline.
everyday85
15-05-2013 12:43:29
UnitTest_PolygonalSkin never was removed and it is still there.
Edit: my bad, it is called UnitTest_Spline.
Thanks, I'll check that code.
Another question: how can I clone widgets in mygui?
For example, if I have written a widget with certain skin, position and size in my layout file. After loading this file, I decide to make some clones of this widget with the same skin and size. I can't find copy or clone functions in mygui. How can I do this?
Currently, I just read the layout file again and store the skin name and other attributes in a separate data structure. But I think it would be better if mygui can supply some functions to clone widgets.
Altren
15-05-2013 13:46:42
Another question: how can I clone widgets in mygui?
There is no way to clone widgets and we have no plans of adding such functionality.
For example, if I have written a widget with certain skin, position and size in my layout file. After loading this file, I decide to make some clones of this widget with the same skin and size. I can't find copy or clone functions in mygui. How can I do this?
Currently, I just read the layout file again and store the skin name and other attributes in a separate data structure. But I think it would be better if mygui can supply some functions to clone widgets.
I don't get it, why you store skin name and other attributes in a separate data structure? What we usually do is set all required properties in layout and then load it as many times as necessary.
everyday85
16-05-2013 01:56:08
Another question: how can I clone widgets in mygui?
There is no way to clone widgets and we have no plans of adding such functionality.
For example, if I have written a widget with certain skin, position and size in my layout file. After loading this file, I decide to make some clones of this widget with the same skin and size. I can't find copy or clone functions in mygui. How can I do this?
Currently, I just read the layout file again and store the skin name and other attributes in a separate data structure. But I think it would be better if mygui can supply some functions to clone widgets.
I don't get it, why you store skin name and other attributes in a separate data structure? What we usually do is set all required properties in layout and then load it as many times as necessary.
Thanks Altren. It seems that I didn't understand your loadLayout() method before. I thought it can only be used once during the initialisation. Now I checked the source code again and it actually creates all the widgets in the layout file every time we load it. So I need to do is just store these widget pointers somewhere and then unload them at the end of execution. Thanks again for helping me with this.