Create a bindkey to switch between append mode and read-only

S

Svenn Are Bjerkem

Guest
Hi,

setting the default opening mode to read-only is a very clever way to
avoid doing accidental changes. This is the default mode in my setup.
This means that I have to actively set the view editable, which so far
is only via menu Design->make editable.

I modified the XXToccleSnapSpacing.il provided here and added a new
bindkey to my .cdsinit file:

XXToggleEditMode.il:
procedure( XXToggleEditMode( wnd )
if( equal wnd~>cellView~>mode "r" )
;; then
schHiChangeEditMode( "a" )
;; else
schHiChangeEditMode( "r" )))

..cdsinit:
load( "~/work/skill/XXToggleEditMode.il" )
hiSetBindKey( "Schematics" "<Key>1"
"XXToggleEditMode(hiGetCurrentWindow()")

--
Svenn
 
Svenn Are Bjerkem wrote:
setting the default opening mode to read-only is a very clever way to
avoid doing accidental changes. This is the default mode in my setup.
Forgot to show how to set open read-only double-click in library manager:

In .cdsenv file:
cdsLibManager.main dblClickEditCellView boolean nil

--
Svenn
 

Welcome to EDABoard.com

Sponsor

Back
Top