[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TControl.Visible

Allows to show or hide the control, and all of its children.

Declaration

Source position: controls.pp line 1669

public property TControl.Visible : Boolean
  read FVisible
  write SetVisible
  stored IsVisibleStored
  default True;

Description

Visible is set to True by Show, or to False by Hide. Calling these methods is equivalent to setting the Visible property.

Remark: Reading the Visible property does not take into account control's parent visibility. Use the IsVisible method to get the real visibility.

See also

#lcl.Controls.TControl.IsVisible

  

Returns True if the control is visible, including all of its Parents.

#lcl.Controls.TControl.Show

  

Makes the control visible, by setting Visible to True.

#lcl.Controls.TControl.Hide

  

Hides this control, by setting Visible to False.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.