mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-14 13:52:39 +02:00
ide: update enabled state for source editor clipboard menu items
git-svn-id: trunk@22032 -
This commit is contained in:
parent
46991b595d
commit
32e67c21ce
@ -4397,6 +4397,11 @@ begin
|
||||
end;
|
||||
EditorComp:=ASrcEdit.EditorComponent;
|
||||
|
||||
// Clipboard
|
||||
SrcEditMenuCut.Enabled := ASrcEdit.SelectionAvailable and not ASrcEdit.ReadOnly;
|
||||
SrcEditMenuCopy.Enabled := ASrcEdit.SelectionAvailable;
|
||||
SrcEditMenuPaste.Enabled := not ASrcEdit.ReadOnly;
|
||||
|
||||
// Readonly, ShowLineNumbers
|
||||
SrcEditMenuReadOnly.MenuItem.Checked:=ASrcEdit.ReadOnly;
|
||||
SrcEditMenuShowLineNumbers.MenuItem.Checked :=
|
||||
|
Loading…
Reference in New Issue
Block a user