LCL: Update TDBText.Caption in overridden Loaded method. Issue #23206, patch from Tony Whyman

git-svn-id: trunk@40925 -
This commit is contained in:
juha 2013-04-29 07:20:23 +00:00
parent 8d88bf826d
commit 8b188009b0
2 changed files with 8 additions and 0 deletions

View File

@ -271,6 +271,7 @@ Type
protected
procedure Notification(AComponent: TComponent; Operation: TOperation); override;
class procedure WSRegisterClass; override;
procedure Loaded; override;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;

View File

@ -89,6 +89,13 @@ begin
Done := True;
end;
procedure TDBText.Loaded;
begin
inherited Loaded;
if csDesigning in ComponentState then
Caption := Name
end;
{ Public Methods}
constructor TDBText.Create(AOwner: TComponent);
begin