Sign in Join
FPDoc Onlineexperiment

TCustomImage.PictureChanged procedure

Member of TCustomImageprotectedIn unit ExtCtrls

Performs actions needed when the Picture property has been changed.

Declaration

pascal
procedure PictureChanged(Sender: TObject); virtual

Arguments

Sender

Object instance for the change notification.

Description

PictureChanged is a procedure used to perform actions needed when the Picture property has been changed. PictureChanged adjusts the size for an assigned bitmap in Picture, and sets its bitmap transparency to the value in the Transparent property. PictureChanged calls Invalidate to cause the image to be repainted. The OnPictureChanged event handler is signalled (when assigned) prior to exiting from the method.

PictureChanged is assigned as the OnChange event handler for the Picture property in the constructor for the class instance.

See also

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