mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-06 11:38:15 +02:00
lcl: add new TImage event OnPictureChanged
git-svn-id: trunk@17065 -
This commit is contained in:
parent
4104418b88
commit
c29b56e233
@ -553,6 +553,7 @@ type
|
||||
|
||||
TCustomImage = class(TGraphicControl)
|
||||
private
|
||||
FOnPictureChanged: TNotifyEvent;
|
||||
FPicture: TPicture;
|
||||
FCenter: Boolean;
|
||||
FProportional: Boolean;
|
||||
@ -592,6 +593,7 @@ type
|
||||
property Stretch: Boolean read FStretch write SetStretch default False;
|
||||
property Transparent: Boolean read FTransparent write SetTransparent default False;
|
||||
property Proportional: Boolean read FProportional write SetProportional default False;
|
||||
property OnPictureChanged: TNotifyEvent read FOnPictureChanged write FOnPictureChanged;
|
||||
end;
|
||||
|
||||
|
||||
@ -620,6 +622,7 @@ type
|
||||
property OnMouseMove;
|
||||
property OnMouseUp;
|
||||
property OnPaint;
|
||||
property OnPictureChanged;
|
||||
property OnResize;
|
||||
property OnStartDrag;
|
||||
property ParentShowHint;
|
||||
|
@ -155,6 +155,8 @@ begin
|
||||
Picture.Graphic.Transparent := FTransparent;
|
||||
end;
|
||||
invalidate;
|
||||
if Assigned(OnPictureChanged) then
|
||||
OnPictureChanged(Self);
|
||||
end;
|
||||
|
||||
function TCustomImage.DestRect: TRect;
|
||||
|
Loading…
Reference in New Issue
Block a user