mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 20:59:36 +02:00
LCL: Show name of control contained in TFlowPanelControl in nodes of object tree.
git-svn-id: trunk@59113 -
This commit is contained in:
parent
652179026e
commit
bba151118e
@ -1175,6 +1175,7 @@ type
|
||||
procedure SetControl(const aControl: TControl);
|
||||
procedure SetWrapAfter(const AWrapAfter: TWrapAfter);
|
||||
protected
|
||||
function GetDisplayName: String; override;
|
||||
procedure SetIndex(Value: Integer); override;
|
||||
procedure AssignTo(Dest: TPersistent); override;
|
||||
function FPCollection: TFlowPanelControlList;
|
||||
|
@ -118,6 +118,14 @@ begin
|
||||
Result := FPCollection.FPOwner;
|
||||
end;
|
||||
|
||||
function TFlowPanelControl.GetDisplayName: String;
|
||||
begin
|
||||
if (FControl is TComponent) then
|
||||
Result := '[' + TComponent(FControl).Name + ']'
|
||||
else
|
||||
Result := inherited;
|
||||
end;
|
||||
|
||||
procedure TFlowPanelControl.SetControl(const aControl: TControl);
|
||||
begin
|
||||
if FControl = aControl then Exit;
|
||||
|
Loading…
Reference in New Issue
Block a user