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

Discussion in 'Cadence' started by Svenn Are Bjerkem, Jan 26, 2005.

  1. 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 Are Bjerkem, Jan 26, 2005
    #1
  2. Forgot to show how to set open read-only double-click in library manager:

    In .cdsenv file:
    cdsLibManager.main dblClickEditCellView boolean nil
     
    Svenn Are Bjerkem, Jan 27, 2005
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.