OK, not an easy thing to do. Hopefully this makes
sense
If you open a browser
from a file you can open it maximized by using the following command:
guiOpen("ObjectBrowser",
FileName = "C:\\Documents and Settings\\... .sbf ", Show =
"Maximized")
If you automatically open the commands window on
startup and have set in you Options/Command Line/Options tab to “Keep Window
Focus” then the previous command should open the browser,
maximize all windows, leaving the commands window maximized on top. That might
be all you need to do.
You can turn the “Keep Window Focus” off
if you don’t like to work like that with the command:
guiSetOption(
option.name="KeepCommandsFocus", value.string="F" )
but you will need to reset it to T when you close S+
by putting a command in the .Last() function.
If you need to toggle the commands window open or
close used this command, however when you reopen it, it will appear last on
your list of open windows.
guiExecuteBuiltIn("$$SPlusMenuBar$No_Documents$Window$Commands_Window")
This command will set/reset the startup status of
the command line.
guiSetOption( option.name="StartupCommandLine",
value.string="F" )
There is also a guiOpenView command which should let
you change the status on the fly, but I have not been able to get it to work
yet.
With a bit of mucking about with these commands you
should be able to get S+ to do what you want. The commands window is a special
S+ object so is not able to be manipulated with the usual GUI commands guiOpen,
guiClose etc.
Michael
*********************************************
Michael Camilleri
Building Physicist
Mailto:MichaelCamilleri@branz.co.nz
BRANZ Ltd. Ph:
(+64 4) 237 1170
Private Bag 50-908 Fax: (+64 4) 237
1171
Porirua City 5240, DDI:
(+64 4) 237 1174
New
Zealand Web: www.branz.co.nz/main.php?page=HEEP