mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 21:50:18 +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);
|
nil,nil,CmdFormatSelection);
|
||||||
|
|
||||||
//source editor popup
|
//source editor popup
|
||||||
RegisterIDEMenuCommand(SrcEditMenuSectionMovePage,
|
RegisterIDEMenuCommand(SourceEditorMenuRoot,
|
||||||
'-',
|
|
||||||
'-',
|
|
||||||
nil,nil,nil);
|
|
||||||
RegisterIDEMenuCommand(SrcEditMenuSectionMovePage,
|
|
||||||
'PrintSelection',
|
'PrintSelection',
|
||||||
SDescrPFSelection,
|
SDescrPFSelection,
|
||||||
nil,nil,CmdFormatSelection);
|
nil,nil,CmdFormatSelection);
|
||||||
|
@ -3923,13 +3923,15 @@ begin
|
|||||||
|
|
||||||
// editor layout
|
// editor layout
|
||||||
SrcEditMenuMoveEditorLeft.MenuItem.Enabled:=
|
SrcEditMenuMoveEditorLeft.MenuItem.Enabled:=
|
||||||
(NoteBook<>nil) and (NoteBook.PageCount>1);
|
(NoteBook<>nil) and (NoteBook.PageCount>1);
|
||||||
SrcEditMenuMoveEditorRight.MenuItem.Enabled:=
|
SrcEditMenuMoveEditorRight.MenuItem.Enabled:=
|
||||||
(NoteBook<>nil) and (NoteBook.PageCount>1);
|
(NoteBook<>nil) and (NoteBook.PageCount>1);
|
||||||
SrcEditMenuMoveEditorFirst.MenuItem.Enabled:=
|
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:=
|
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);
|
EditorPopupPoint:=EditorComp.ScreenToClient(SrcPopUpMenu.PopupPoint);
|
||||||
if EditorPopupPoint.X>EditorComp.GutterWidth then begin
|
if EditorPopupPoint.X>EditorComp.GutterWidth then begin
|
||||||
|
@ -379,10 +379,10 @@ var
|
|||||||
SrcEditMenuSectionMarks: TIDEMenuSection;
|
SrcEditMenuSectionMarks: TIDEMenuSection;
|
||||||
SrcEditSubMenuGotoBookmarks: TIDEMenuSection;
|
SrcEditSubMenuGotoBookmarks: TIDEMenuSection;
|
||||||
SrcEditSubMenuSetBookmarks: TIDEMenuSection;
|
SrcEditSubMenuSetBookmarks: TIDEMenuSection;
|
||||||
SrcEditSubMenuFlags: TIDEMenuSection;
|
|
||||||
SrcEditSubMenuHighlighter: TIDEMenuSection;
|
|
||||||
SrcEditSubMenuDebug: TIDEMenuSection;
|
SrcEditSubMenuDebug: TIDEMenuSection;
|
||||||
SrcEditSubMenuRefactor: TIDEMenuSection;
|
SrcEditSubMenuRefactor: TIDEMenuSection;
|
||||||
|
SrcEditSubMenuFlags: TIDEMenuSection;
|
||||||
|
SrcEditSubMenuHighlighter: TIDEMenuSection;
|
||||||
|
|
||||||
// Messages window popupmenu
|
// Messages window popupmenu
|
||||||
MessagesMenuRoot: TIDEMenuSection = nil;
|
MessagesMenuRoot: TIDEMenuSection = nil;
|
||||||
|
Loading…
Reference in New Issue
Block a user