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:
local ACE_GUI=LibStub:GetLibrary("AceGUI-3.0");-- Assuming you had this defined previously
local basicFrame=ACE_GUI:Create("Frame");
basicFrame:SetHeight(200);
basicFrame:SetWidth(200);
-- Both of these should print the same value
print(basicFrame.frame.width);
print(basicFrame.frame:GetWidth());