mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 15:36:03 +02:00
fixed not setting TMenu.Items.Caption
git-svn-id: trunk@7780 -
This commit is contained in:
parent
f1bd1cc6c5
commit
a0c1aa4499
@ -884,7 +884,7 @@ procedure TMenuItem.SetCaption(const AValue: string);
|
|||||||
begin
|
begin
|
||||||
if FCaption = AValue then exit;
|
if FCaption = AValue then exit;
|
||||||
FCaption := AValue;
|
FCaption := AValue;
|
||||||
if HandleAllocated then
|
if HandleAllocated and ((Parent<>nil) or (FMenu=nil)) then
|
||||||
TWSMenuItemClass(WidgetSetClass).SetCaption(Self, AValue);
|
TWSMenuItemClass(WidgetSetClass).SetCaption(Self, AValue);
|
||||||
OwnerFormDesignerModified(Self);
|
OwnerFormDesignerModified(Self);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user