WoW:API Region IsShown: Difference between revisions

m
no edit summary
(Link Boolean)
mNo edit summary
Line 1: Line 1:
{{widgetmethod}} __NOTOC__
{{widgetmethod}}
 
Determine if the object is "shown" (would be visible if its parent was visible).
Determine if the object is "shown" (would be visible if its parent was visible).


Line 20: Line 19:
:Calling [[API Region Show|:Show]]() on an object will make subsequent calls to IsShown() return ''true''. Likewise, calling [[API Region Hide|:Hide]]() will make subsequent calls to IsShown() return ''false''.
:Calling [[API Region Show|:Show]]() on an object will make subsequent calls to IsShown() return ''true''. Likewise, calling [[API Region Hide|:Hide]]() will make subsequent calls to IsShown() return ''false''.


{{spc}}
:When an object is initialized, the return value of IsShown() is determined by the XML-attribute "hidden" for the object.
:When an object is initialized, the return value of IsShown() is determined by the XML-attribute "hidden" for the object.
:Objects created via [[API CreateFrame|CreateFrame]](), [[API Frame CreateFontString|Frame:CreateFontString]]() or [[API Frame CreateTexture|Frame:CreateTexture]]() are initially created shown.
:Objects created via [[API CreateFrame|CreateFrame]](), [[API Frame CreateFontString|Frame:CreateFontString]]() or [[API Frame CreateTexture|Frame:CreateTexture]]() are initially created shown.
Anonymous user