mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 10:50:53 +02:00
LCL: Update TDBText.Caption in overridden Loaded method. Issue #23206, patch from Tony Whyman
git-svn-id: trunk@40925 -
This commit is contained in:
parent
8d88bf826d
commit
8b188009b0
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user