Unit 'Controls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TControl.IsVisible

Gets the effective visibility for the control and all of its Parent controls.

Declaration

Source position: controls.pp line 1643

public function TControl.IsVisible: Boolean; virtual;

Function result

True when the control and and all Parent controls are Visible.

Description

IsVisible calls IsControlVisible to determine if the control has its Visible property set to True. At design-time, ControlStyle is also checked to ensure that csNoDesignVisible is not used in the style flags. Each of the Parent controls in the hierarchy call their IsVisible method to determine the return value for the method.

Use IsEnabled to get the effective enabled state for the control and all of its Parent controls.

See also

TControl.Visible

  

Allows the control, and all of its children, to be displayed or hidden.

TControl.Parent

  

The control within which the control is shown.

TControl.IsControlVisible

  

True if the control is Visible, or is in design mode.

TControl.IsEnabled

  

Returns True if both the control and all of its Parent controls are Enabled.



CT Web help

CodeTyphon Studio