mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-25 12:39:20 +02:00
ideprinting: fixed menu
git-svn-id: trunk@14501 -
This commit is contained in:
parent
7566383233
commit
262ab9c76f
@ -65,11 +65,7 @@ begin
|
||||
nil,nil,CmdFormatSelection);
|
||||
|
||||
//source editor popup
|
||||
RegisterIDEMenuCommand(SrcEditMenuSectionMovePage,
|
||||
'-',
|
||||
'-',
|
||||
nil,nil,nil);
|
||||
RegisterIDEMenuCommand(SrcEditMenuSectionMovePage,
|
||||
RegisterIDEMenuCommand(SourceEditorMenuRoot,
|
||||
'PrintSelection',
|
||||
SDescrPFSelection,
|
||||
nil,nil,CmdFormatSelection);
|
||||
|
@ -3923,13 +3923,15 @@ begin
|
||||
|
||||
// editor layout
|
||||
SrcEditMenuMoveEditorLeft.MenuItem.Enabled:=
|
||||
(NoteBook<>nil) and (NoteBook.PageCount>1);
|
||||
(NoteBook<>nil) and (NoteBook.PageCount>1);
|
||||
SrcEditMenuMoveEditorRight.MenuItem.Enabled:=
|
||||
(NoteBook<>nil) and (NoteBook.PageCount>1);
|
||||
(NoteBook<>nil) and (NoteBook.PageCount>1);
|
||||
SrcEditMenuMoveEditorFirst.MenuItem.Enabled:=
|
||||
(NoteBook<>nil) and (NoteBook.PageCount>1) and (NoteBook.PageIndex>0);
|
||||
(NoteBook<>nil) and (NoteBook.PageCount>1)
|
||||
and (NoteBook.PageIndex>0);
|
||||
SrcEditMenuMoveEditorLast.MenuItem.Enabled:=
|
||||
(NoteBook<>nil) and (NoteBook.PageCount>1) and (NoteBook.PageIndex<(NoteBook.PageCount-1));
|
||||
(NoteBook<>nil) and (NoteBook.PageCount>1)
|
||||
and (NoteBook.PageIndex<(NoteBook.PageCount-1));
|
||||
|
||||
EditorPopupPoint:=EditorComp.ScreenToClient(SrcPopUpMenu.PopupPoint);
|
||||
if EditorPopupPoint.X>EditorComp.GutterWidth then begin
|
||||
|
@ -379,10 +379,10 @@ var
|
||||
SrcEditMenuSectionMarks: TIDEMenuSection;
|
||||
SrcEditSubMenuGotoBookmarks: TIDEMenuSection;
|
||||
SrcEditSubMenuSetBookmarks: TIDEMenuSection;
|
||||
SrcEditSubMenuFlags: TIDEMenuSection;
|
||||
SrcEditSubMenuHighlighter: TIDEMenuSection;
|
||||
SrcEditSubMenuDebug: TIDEMenuSection;
|
||||
SrcEditSubMenuRefactor: TIDEMenuSection;
|
||||
SrcEditSubMenuFlags: TIDEMenuSection;
|
||||
SrcEditSubMenuHighlighter: TIDEMenuSection;
|
||||
|
||||
// Messages window popupmenu
|
||||
MessagesMenuRoot: TIDEMenuSection = nil;
|
||||
|
Loading…
Reference in New Issue
Block a user