mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 14:35:58 +02:00
LCL: Make the label in LabeledEdit move together with its owner after copying. Issue #19067, patch from Flávio Etrusco
git-svn-id: trunk@32338 -
This commit is contained in:
parent
a5310c119f
commit
e66ffe4ea2
@ -855,6 +855,7 @@ type
|
||||
class procedure WSRegisterClass; override;
|
||||
procedure SetParent(AParent: TWinControl); override;
|
||||
procedure SetName(const Value: TComponentName); override;
|
||||
procedure Loaded; override;
|
||||
procedure DoPositionLabel; virtual;
|
||||
procedure Notification(AComponent: TComponent; Operation: TOperation); override;
|
||||
procedure CMVisibleChanged(var Msg: TLMessage); message CM_VISIBLECHANGED;
|
||||
|
@ -59,6 +59,12 @@ begin
|
||||
Text := '';
|
||||
end;
|
||||
|
||||
procedure TCustomLabeledEdit.Loaded;
|
||||
begin
|
||||
inherited Loaded;
|
||||
DoPositionLabel;
|
||||
end;
|
||||
|
||||
procedure TCustomLabeledEdit.DoPositionLabel;
|
||||
begin
|
||||
if FEditLabel = nil then exit;
|
||||
|
Loading…
Reference in New Issue
Block a user