mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-27 21:33:48 +02:00
TCustomAbstractGroupedEdit: assign PopupMenu also to FBuddy (if this does not have a separate PopupMenu by itself).
Resolves part of #38098.
This commit is contained in:
parent
8fa26c3c71
commit
54e9cc9171
@ -905,8 +905,14 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCustomAbstractGroupedEdit.SetPopupMenu(AValue: TPopupMenu);
|
procedure TCustomAbstractGroupedEdit.SetPopupMenu(AValue: TPopupMenu);
|
||||||
|
var
|
||||||
|
OldPopupMenu: TPopupMenu;
|
||||||
begin
|
begin
|
||||||
|
OldPopupMenu := FEdit.PopupMenu;
|
||||||
FEdit.PopupMenu := AValue;
|
FEdit.PopupMenu := AValue;
|
||||||
|
//users can assign a different popupmenu to the buddy if so desired, if that is the case, don't touch it
|
||||||
|
if (FBuddy.PopupMenu = OldPopupMenu) then
|
||||||
|
FBuddy.PopupMenu := AValue;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCustomAbstractGroupedEdit.RealSetText(const AValue: TCaption);
|
procedure TCustomAbstractGroupedEdit.RealSetText(const AValue: TCaption);
|
||||||
|
Loading…
Reference in New Issue
Block a user