Patch from bug #20252

git-svn-id: trunk@32657 -
This commit is contained in:
sekelsenmat 2011-10-03 15:24:51 +00:00
parent 2710107266
commit 53b49c7086

View File

@ -267,7 +267,10 @@ procedure TCustomBitBtn.Loaded;
begin
inherited Loaded;
if (Kind <> bkCustom) and DefaultCaption and (Caption = '') then
Caption := GetCaptionOfKind(Kind);
begin
Caption := GetCaptionOfKind(Kind); // Will trigger TextChanged
DefaultCaption := True;
end;
end;
procedure TCustomBitBtn.TextChanged;