mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 02:59:15 +02:00
anchordocking: do not clear items on popupmenu closeup
git-svn-id: trunk@26089 -
This commit is contained in:
parent
c802efbd20
commit
04b038eff5
@ -67,7 +67,6 @@
|
|||||||
- dnd move page to another pagecontrol
|
- dnd move page to another pagecontrol
|
||||||
|
|
||||||
ToDo:
|
ToDo:
|
||||||
- windows: close button glyph
|
|
||||||
- windows: caption height for left aligned header
|
- windows: caption height for left aligned header
|
||||||
- windows: no menu item work
|
- windows: no menu item work
|
||||||
- use site icon from wrapped form
|
- use site icon from wrapped form
|
||||||
@ -387,7 +386,6 @@ type
|
|||||||
procedure EnableAllAutoSizing;
|
procedure EnableAllAutoSizing;
|
||||||
procedure ClearLayoutProperties(AControl: TControl);
|
procedure ClearLayoutProperties(AControl: TControl);
|
||||||
procedure PopupMenuPopup(Sender: TObject);
|
procedure PopupMenuPopup(Sender: TObject);
|
||||||
procedure PopupMenuCloseUp(Sender: TObject);
|
|
||||||
procedure SetShowHeaderCaptionFloatingControl(const AValue: boolean);
|
procedure SetShowHeaderCaptionFloatingControl(const AValue: boolean);
|
||||||
procedure SetSplitterWidth(const AValue: integer);
|
procedure SetSplitterWidth(const AValue: integer);
|
||||||
procedure ChangeLockButtonClick(Sender: TObject);
|
procedure ChangeLockButtonClick(Sender: TObject);
|
||||||
@ -1378,15 +1376,6 @@ begin
|
|||||||
AddPopupMenuItem('OptionsMenuItem', adrsDockingOptions, @OptionsClick);
|
AddPopupMenuItem('OptionsMenuItem', adrsDockingOptions, @OptionsClick);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TAnchorDockMaster.PopupMenuCloseUp(Sender: TObject);
|
|
||||||
var
|
|
||||||
Popup: TPopupMenu;
|
|
||||||
begin
|
|
||||||
if not (Sender is TPopupMenu) then exit;
|
|
||||||
Popup:=TPopupMenu(Sender);
|
|
||||||
Popup.Items.Clear;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TAnchorDockMaster.SetShowHeaderCaptionFloatingControl(
|
procedure TAnchorDockMaster.SetShowHeaderCaptionFloatingControl(
|
||||||
const AValue: boolean);
|
const AValue: boolean);
|
||||||
var
|
var
|
||||||
@ -1541,7 +1530,6 @@ begin
|
|||||||
if fPopupMenu=nil then begin
|
if fPopupMenu=nil then begin
|
||||||
fPopupMenu:=TPopupMenu.Create(Self);
|
fPopupMenu:=TPopupMenu.Create(Self);
|
||||||
fPopupMenu.OnPopup:=@PopupMenuPopup;
|
fPopupMenu.OnPopup:=@PopupMenuPopup;
|
||||||
fPopupMenu.OnClose:=@PopupMenuCloseUp;
|
|
||||||
end;
|
end;
|
||||||
Result:=fPopupMenu;
|
Result:=fPopupMenu;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user