Livecode Wiki
Advertisement

Specifies whether an object can be seen or is hidden.Syntax:

set the [effective] visible of <object> to {true | false}

Examples:

set the visible of stack "Palette" to false
set the visible of me to (not the visible of me)
put the effective visible of button "save"

Use the visible property to determine whether an object is hidden or not, or to hide or show an object.

A hidden object is still present and still takes up memory, and a handler can access its properties and contents, but the user cannot see or or interact with it.

An object that cannot be seen only because it's behind another object is still visible, in the sense that its visible property is still true.

The visible property of grouped controls is independent of the visible property of the group. Setting a group's visible property to false doesn't change the visible property of its controls; their visible property is still true, even though the controls cannot be seen because the group is invisible.

If you specify the effective keyword the visible property of a control returns true if, and only if, the control and all it's parent groups are visible.

You can set the visible property of a card, but doing so has no effect. Cards cannot be made invisible.

The visible property is the logical inverse of the invisible property. When an object's visible is true, its invisible is false, and vice versa.

See also: card (object), control (object), showInvisibles (property), invisible (property),

Advertisement