Vcl.Controls.TControl.Visible

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

__property bool Visible = {read=FVisible, write=SetVisible, stored=IsVisibleStored, default=1};

Properties

Type Visibility Source Unit Parent
property public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Specifies whether the component appears onscreen.

Use the Visible property to control the visibility of the control at run time. If Visible is True, the control appears. If Visible is False, the control is not visible.

Calling the Show method sets the control's Visible property to True. Calling the Hide method sets it to False.

For TCustomForm descendants, the Show and ShowModal methods set Visible to True and bring the form to the front of all open windows.

For TTabSheet descendants, Visible does not control the visibility of the control at run time. For more information, see the description of the TabVisible property.

See Also

Code Examples