Sign in Join
FPDoc Onlineexperiment

TControl.VisibleChanging procedure

Member of TControlprotectedIn unit Controls

Notifies all chtOnVisibleChanging handlers for the control.

Declaration

pascal
procedure VisibleChanging; virtual

Description

VisibleChanging is called when a new value is assigned to the Visible property. It occurs before the new property value is stored to its member in the class instance. It allows all of the TNotifyEvent routines registered for the chtOnVisibleChanging control handler type to be signalled prior to the change in the property value.

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

Use AddHandlerOnVisibleChanging and RemoveHandlerOnVisibleChanging to manage the TNotifyEvent handler routines for the chtOnVisibleChanging handler type used in the control.

See VisibleChanged for the actions performed after the value in Visible has been updated.

See also

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