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:
juha 2011-09-14 21:23:23 +00:00
parent a5310c119f
commit e66ffe4ea2
2 changed files with 7 additions and 0 deletions

View File

@ -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;

View File

@ -59,6 +59,12 @@ begin
Text := '';
end;
procedure TCustomLabeledEdit.Loaded;
begin
inherited Loaded;
DoPositionLabel;
end;
procedure TCustomLabeledEdit.DoPositionLabel;
begin
if FEditLabel = nil then exit;