System.Actions.TContainedActionLink.IsVisibleLinked

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IsVisibleLinked: Boolean; virtual;

C++

virtual bool __fastcall IsVisibleLinked(void);

Properties

Type Visibility Source Unit Parent
function protected
System.Actions.pas
System.Actions.hpp
System.Actions TContainedActionLink

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.

TContainedActionLink descendants call IsVisibleLinked to determine whether they need to propagate changes made to the Visible property of the action to the Visible property of the client:

  • When TActionLink.IsVisibleLinked returns True, the action controls the Visible property; changes made to the action's Visible property are reflected by changes to the corresponding Visible property of the client object. This means that, if the Visible property of the action is False, then the Visible property of the client is also is set False and the client becomes invisible. For example, if a client is a menu item or a control, then these menu item or control are invisible.
  • When IsVisibleLinked returns False, the client object does not reflect the Visible property of its action, either because it does not have a corresponding property, or, more commonly, because it manages the value of its corresponding Visible property independently.

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