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)
tlw:SetMouseEnabled(true)
tlw:SetMovable(true)
tlw:SetHidden(false)
tlw:SetClampedToScreen(true)
tlw:SetDimensions(350, 400)
tlw:SetClampedToScreenInsets(-24)
tlw:SetAnchor(TOPLEFT, GuiRoot, TOPLEFT, 50,50)
tlw:SetDimensionConstraints(minWidth, minHeight)
tlw:SetResizeHandleSize(16)
tlw:SetHandler("OnResizeStart", function(self,value)
d("OnResizeStart")
end)
tlw:SetHandler("OnResizeStop", function(self,value)
d("OnResizeStop")
end)
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?