Ace3 GetWidth() not working
When I try to use GetWidth() or GetHeight() on an Ace3 frame I receive the error message 'attempt to call method 'GetWidth' (a nil value)'.
local basicFrame = ACE_GUI:Create("Frame") basicFrame:SetHeight(200) basicFrame:SetWidth(200) print(basicFrame:GetWidth()) When I use a frame from CreateFrame() I can use GetWidth() and GetHeight(). I am also developing on Classic if that makes a difference. |
AceGUI:Create() doesn't directly return a frame handle. It returns a table they call a "widget", though it does contain the frame handle at widget.frame. AceGUI also sets widget.frame.width when you call widget:SetWidth().
Example: Lua Code:
|
All times are GMT -6. The time now is 05:15 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI