Creation/Dev/Script/Client/GuiControl

From Graal Bible
Revision as of 02:45, 27 January 2006 by Rick (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Inherits from TGraalVar

  GuiControl (TGraalVar):
    active - boolean
    awake - boolean (read only)
    canmove - boolean
    canresize - boolean
    editing - boolean
    extent - string
    height - integer
    hint - string
    horizsizing - string
    layer - integer (read only)
    minextent - string
    minsize - string - the same like "minExtent"
    parent - object (read only)
    position - string
    profile - object
    resizeheight - boolean
    resizewidth - boolean
    scrolllinex - integer
    scrollliney - integer
    showhint - boolean
    useownprofile - boolean
    vertsizing - string
    visible - boolean
    width - integer
    x - integer
    y - integer
    addcontrol(obj)
    bringtofront()
    destroy()
    getparent() - returns object
    globaltolocalcoord(str) - returns string - converts global screen coordinates to a position relative to the controls origin (0,0), can be used to know where exactly the user has clicked inside a control
    hide()
    isfirstresponder() - returns boolean
    localtoglobalcoord(str) - returns string - converts a position relative to the controls origin (0,0) to global screen coordinates, can be used to know where on the screen a control is displayed in case it is a child of another control (e.g. GuiWindowCtrl or GuiScrollCtrl)
    makefirstresponder(bool)
    pushtoback()
    resize(int, int, int, int)
    show()
    showtop() - calls show(), tabfirst() and bringtofront()
    tabfirst() - returns object