Sign in Join
FPDoc Onlineexperiment

TControl.VisibleChanged procedure

Member of TControlprotectedIn unit Controls

Notifies all chtOnVisibleChanged handlers for the control.

Declaration

pascal
procedure VisibleChanged; virtual

Description

VisibleChanged is called when a new value has been assigned to the Visible property. It occurs after the new property value is stored to its member in the class instance. It allows all of the TNotifyEvent routines registered for the chtOnVisibleChanged control handler type to be signalled for the new property value.

VisibleChanged calls the DoCallNotifyHandler method to signal each of the handler routines using the chtOnVisibleChanged control handler type. The class instance is used as the Sender argument for the event notification.

Use AddHandlerOnVisibleChanged and RemoveHandlerOnVisibleChanged to manage the TNotifyEvent handler routines for the chtOnVisibleChanged handler type used in the control.

See VisibleChanging for the actions performed before the value in Visible is updated.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.