Anyone see anything wrong with this. Why can't I get OnResizeStop to work? Shouldn't it fire when I let go of the window handle?
OnResizeStart works just fine.
Warning: Spoiler
Lua Code:
local tlw = WINDOW_MANAGER:CreateTopLevelWindow(_UniqueName)
While I'm here, Is there anyway to get continuous size updates while you are resizing something. I don't see anything like an OnResizeUpdate or anything to indicate a size change.
I'm trying to determine when a window shrinks (or grows) past a certain size, while resizing.
Is there any way to do it without hooking something?
Anyone see anything wrong with this. Why can't I get OnResizeStop to work? Shouldn't it fire when I let go of the window handle?
OnResizeStart works just fine.
Warning: Spoiler
Lua Code:
local tlw = WINDOW_MANAGER:CreateTopLevelWindow(_UniqueName)
While I'm here, Is there anyway to get continuous size updates while you are resizing something. I don't see anything like an OnResizeUpdate or anything to indicate a size change.
I'm trying to determine when a window shrinks (or grows) past a certain size, while resizing.
Is there any way to do it without hooking something?
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.
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.