![]() |
'Dynamic' GUI Control Manipulation
I've just started playing with GUI Controls more recently and was wondering if anybody could tell me how to reference Gui Controls that are created dynamically.
for example new GuiControl("Name"@var) { } And..something along the lines of: ("Name"@var).method(); |
That's exactly right :)
|
(@ "Name" @ var) edit: hmm, or maybe you don't need the initial concat!
However, you'd much rather use catchevent with such dynamically named objects, since otherewise you'd have to account for each var, and subsequent name. PHP Code:
|
D'oh, thanks both :D
I'd made a mistake with my looping so it wasn't calling correctly. Quote:
Though I'm also thinking now it'd be faster / better to just replace Controls where applicable rather than destroying / recreating. |
Quote:
For example: PHP Code:
|
| All times are GMT +2. The time now is 12:42 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.