FMX.ActnList.TActionLink.IsVisibleLinked

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IsVisibleLinked: Boolean; override;

C++

virtual bool __fastcall IsVisibleLinked();

Properties

Type Visibility Source Unit Parent
function protected
FMX.ActnList.pas
FMX.ActnList.hpp
FMX.ActnList TActionLink

Description

Defines the method to retrieve whether the Visible property of the action assigned to the action link, and the Visible property of the client of the action link are linked.

FMX.ActnList.TActionLink.IsVisibleLinked inherits from System.Actions.TContainedActionLink.IsVisibleLinked. All content below this line refers to System.Actions.TContainedActionLink.IsVisibleLinked.

Defines the method to retrieve whether the Visible property of the action assigned to the action link, and the Visible property of the client of the action link are linked.

Descendants of TContainedActionLink call IsVisibleLinked to determine whether they need to distribute changes in the Visible property of the action to the Visible property of the client:

  • When TActionLink.IsVisibleLinked returns True:
    • The action controls the Visible property.
    • The changes made to the action's Visible property are reflected by changes to the corresponding Visible property of the client object.
It means that if the Visible property of the action is False, then the Visible property of the client is also False, and the client becomes invisible. For example, if a client is a menu item or a control, then this menu item or control is invisible.
  • When IsVisibleLinked returns False, the client object does not reflect the Visible property of its action for one of the following reasons:
    • It does not have a corresponding property.
    • It manages the value of its corresponding Visible property independently (more common).

Descendant classes can override IsVisibleLinked to determine whether the Visible property of the action is linked with the appropriate client property.
As implemented in TActionLink:

See Also