Quote:
Originally Posted by cbkbud
Isn't this what addControl is for?
If not, someone please explain it to me?
I would go with the above, doing a catchevent in each one.
|
No, addControl is used to make a gui control a child of another gui control.
So, for example:
PHP Code:
new GuiControl(Bla) {
//stuff
new GuiWindowCtrl(LOL) {
//stuff
}
}
Would be the same, output-wise, as
PHP Code:
new GuiControl(Bla) {
//stuff
}
new GuiWindowCtrl(LOL) {
//stuff
}
GuiControl.addControl(LOL);
But it's generally not used that way. Usually it's used if you want to use a for loop to create several gui objects, or just in any case where a gui object is created after the initial parent is made.
But yeah, no problem Dusty. There's no shame in asking the forums!