Vcl.ExtCtrls.TCustomButtonedEdit.Notification

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Notification(AComponent: TComponent; Operation: TOperation); override;

C++

virtual void __fastcall Notification(System::Classes::TComponent* AComponent, System::Classes::TOperation Operation);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.ExtCtrls.pas
Vcl.ExtCtrls.hpp
Vcl.ExtCtrls TCustomButtonedEdit

Description


Responds to notifications indicating that components are being created or destroyed.

Vcl.ExtCtrls.TCustomButtonedEdit.Notification inherits from Vcl.Controls.TControl.Notification. All content below this line refers to Vcl.Controls.TControl.Notification.

Responds to notifications indicating that components are being created or destroyed.

Notification allows TControl to update its internal state if an associated component is removed. The internal state is updated if:

  • The associated pop-up menu is destroyed.
  • The control docking site is destroyed.
  • The custom hint associated with the control is destroyed.
  • The associated gesture manager is destroyed.

Override the Notification method to respond to notifications indicating that other components are about to be destroyed or have just been created. Use the Notification method to update controls that rely on other objects. Data-aware objects override the Notification method to update themselves when their data source is removed. Some objects respond to notifications indicating that other objects of a specific type are being created. For example, the session component sets the Session property of new data-aware controls to itself when the AutoSessionName property is True.

By default, components pass along the notification to their owned components, if any.

See Also