Arranging views in dflt.mvw

Clovertech Forums Read Only Archives Cloverleaf Tcl Library Arranging views in dflt.mvw

  • Creator
    Topic
  • #51812
    Todd Lundstedt
    Participant

      Frustrated with the Cloverleaf IDE not keeping threads in the same place in sub views when I re-arranged them in the all_threads view, I wrote this little ditty.  In the process, I learned something new about TCL lists (nesting).  You should have seen the code before I stumbled on that little tidbit!  ðŸ˜¯  ðŸ’¡

      While, I am sure Charlie could write this in a 10-character regexp command,  ðŸ˜‰ and Russ will be critical of my not putting a comment on every line (hey, Russ! Hows it going?!  ðŸ˜› ), I learned something, and even got it to work on Windows… go figure.

      Tested on Cloverleaf 5.5, AIX 5.3.  Put the file in your path; I put it in $HCIROOTusercmds

      arrangeView.tcl path/dflt.mvw path/newdflt.mvw

      Tested on Cloverleaf 5.7, W2K3, from a command line

      setroot

      hcitcl patharrangeView.tcl pathdflt.mvw pathnewdflt.mvw

      So, set your all_threads view the way you want, run this script, and the other views will follow all_threads’ lead.

      Enjoy!

    • The forum ‘Tcl Library’ is closed to new topics and replies.