ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   Remove Control (https://www.esoui.com/forums/showthread.php?t=1687)

hulksmash 05/31/14 04:02 PM

Remove Control
 
What is the opposite to CreateControl? I want to remove a control window (which is a row) and redraw all my rows.

CrazyDutchGuy 05/31/14 04:08 PM

There is not an option to remove controls. The only way is to keep track of the controls you create and show/hide depending on the need.

hulksmash 05/31/14 04:37 PM

killing me

thelegendaryof 05/31/14 06:00 PM

Yep I dont get that either why there is no such thing.

That means - never create to many controls and always reuse your old ones.

Seerah 05/31/14 06:37 PM

Because controls are just specialized tables. Once you create a table or control it sits in memory. If you remove all reference to it, it'll eventually be picked up by the garbage collector.

As always, the smartest thing to do is only create things when you need them, and reuse as much as possible. The three R's go very well with this.

Reduce - Reuse - Recycle



All times are GMT -6. The time now is 05:27 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI