- This topic has 0 replies, 1 voice, and was last updated 14 years, 3 months ago by .
-
Topic
-
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.mvwTested on Cloverleaf 5.7, W2K3, from a command line
setroothcitcl 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.