Lock Command Input Height

Posted by VBMeireles on Fri 10 Sep 2010 04:30 PM — 3 posts, 17,330 views.

Brazil #0
Is there a way to lock the height for the command input bar? Sometimes I accidentally change it with the mouse and I'm kind of annoyed by having more than one line there.

I tried searching the forums for "lock command input" but couldn't find anything.

If there is a way to do it, I'd rather have it automatically locked into a single line prompt that fits my input font's height.

At the moment I'm using SetCommandWindowHeight(GetInfo(241)) to fix it, but the ideal situation would be to have it locked like that.

Thanks!
Netherlands #1
The following will still allow you to accidentally resize the input window, but the moment you type, it will fit to suit the content.

Try executing the following in an Immediate (Ctrl+I) window:

SetOption ("auto_resize_command_window", 1)  --> activate auto-resizing for command window
SetOption ("auto_resize_minimum_lines", 1) --> minimum lines for auto-resizing command window 
SetOption ("auto_resize_maximum_lines", 1) --> maximum lines for auto-resizing command window


If you don't like the feature anymore, run:

SetOption ("auto_resize_command_window", 0)  --> no more automatic mucking with the size of the command window
Amended on Sat 11 Sep 2010 03:14 PM by Worstje
Brazil #2
Thanks for the information! It's a very nice workaround.