About Store Forum Documentation Contact



Post Reply 
Using object from *.gobj file many times
Author Message
Ogniok Offline
Member

Post: #1
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Using object from *.gobj file many times
GuiObjs mainGUI[2];
02-15-2010 08:38 PM
Find all posts by this user Quote this message in a reply
Ogniok Offline
Member

Post: #3
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
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
Find all posts by this user Quote this message in a reply
Ogniok Offline
Member

Post: #5
RE: Using object from *.gobj file many times
Ok. Thanks!
02-15-2010 08:58 PM
Find all posts by this user Quote this message in a reply
Post Reply