Resize Script Editor Panes?

Jim Ault JimAultWins at yahoo.com
Wed Jun 6 16:55:27 EDT 2007


On 6/6/07 12:21 PM, "Scott Rossi" <scott at tactilemedia.com> wrote:
> Stupid Question...
> Is it possible to resize the handler list pane in the script editor?

Short answer is 'yes'.  Long answer is what manner to get the solution.
One way is to do the following

This will affect all currently open editor windows only.  Closing and
reopening will require re-running the script to affect any new script editor
windows that have been opened.

---watch for word wrapping in your email client -------
on setHandlerWidth newWidth
  if newWidth is not a number then exit to top
  if newWidth < 140 then exit to top
  repeat with wh = 1 to 99 --all 99 open editor windows
    try
      set the width of fld "handler list" of stack ("revScriptEditor "& wh)
to newWidth
      set the left of fld "handler list"of  stack ("revScriptEditor "& wh)
to 0
      set the left of fld "breakpoints list" of stack ("revScriptEditor "&
wh) to (newWidth)
      set the left of fld "script" of stack ("revScriptEditor "& wh)  to
(newWidth)
    catch errr
      exit to top --no more editor windows left
    end try
  end repeat
end setHandlerWidth

you could make this a back/front script and then invoke it from the message
box when you wanted.

Another option is to set the textAlign to right so you can see the last
part.

 If you want a more permanent fix, you will need to go into Application
Browser, turn on 'view Rev list items' in Rev prefersnces, find the stack
"revTemplateScriptEditor", right click to inspect the card script, then dig
around until you see the right spot to make the width adjustments at the
time the script-editor-window stack is created.

Of course, you should do this on a copy of Rev in case you want to go back
to 'out of the box' behavior

((Note:  If you want to see Rev in action, open the Application Browser,
open a stack, then open a script or two or three.  Scroll to the bottom of
the App Broswer list on the left side and you will see the " revScriptEditor
1" stack showing.  You can use the Inspector to tweak this temp stack. ))

I am sure someone on the list will propose a more elegant and perhaps
automatic width adjuster front script, or such

Jim Ault
Las Vegas





More information about the use-livecode mailing list