Thread: OnResizeStop
View Single Post
11/23/14, 12:24 AM   #3
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by Garkin View Post
Some handlers does not work properly if control is not defined in XML - for example OnUpdate. I'm not sure if this is the case, but it is worth of trying.

There is no such thing as OnResizeUpdate, but it is still possible. Use EVENT_MANAGER:RegisterForUpdate(uniqueName, delay, yourFunctionToCheckSize) in the OnResizeStart handler and unregister it in OnResizeStop handler.
Yeah that's the plan, if I can get the OnResizeStop to work.
I guess that explains why I couldn't get OnUpdate to do anything either.
I'll try converting everything to xml & see if that works.

Thanks for the help.
  Reply With Quote