Ogniok
Member
|
Using object from *.gobj file many times
Hi!
I have a question. I created a window in Gui Editor. I called it "msgWindow".
Code:
GuiObjs mainGUI;
[...] //Loading GUI file, adding to gui(Gui += mainGUI)
Main.win = mainGUI.getWindow("msgWindow");
Exit.win = mainGUI.getWindow("msgWindow");
When I loaded it two times, I saw only one window. Is there any way to use this window many times?
|
|
02-15-2010 08:35 PM |
|
Esenthel
Administrator
|
RE: Using object from *.gobj file many times
GuiObjs mainGUI[2];
|
|
02-15-2010 08:38 PM |
|
Ogniok
Member
|
RE: Using object from *.gobj file many times
Do I have to load a *.gobj file to evry GuiObjs?
Code:
GuiObjs mainGUI[2];
mainGUI.load("test.gobj");
//or
mainGui[0].load("test.gobj");
mainGui[1].load("test.gobj");
mainGui[2].load("test.gobj");
?
|
|
02-15-2010 08:42 PM |
|
Esenthel
Administrator
|
RE: Using object from *.gobj file many times
Quote:Is there any way to use this window many times?
Quote:Do I have to load a *.gobj file to evry GuiObjs?
only if you want many copies
|
|
02-15-2010 08:57 PM |
|
Ogniok
Member
|
RE: Using object from *.gobj file many times
Ok. Thanks!
|
|
02-15-2010 08:58 PM |
|