|
|
Question : Specify or change size of current window in VBS or HTA?
|
|
In a .hta application with VBScript, how do I specify or immediately change the size of the main (and only) window? In this app I present a radio button list of 4 options to select, then perform an action based on the selection. I really don't need a very large window at all and the default window size just looks bad.
So, either on inception, or in the windowOpen sub, I'd like to specify the window size. Kinda like window.resizeTo(,eight>) from JavaScript...
Thanks, Ray L.
|
Answer : Specify or change size of current window in VBS or HTA?
|
|
if you want it in a sub I just tested:
[code]
HTA Demo APPLICATIONNAME="myApp" BORDER="thin" BORDERSTYLE="normal" CAPTION="yes" ICON="graphics/face01.ico" MAXIMIZEBUTTON="yes" MINIMIZEBUTTON="yes" SHOWINTASKBAR="no" SINGLEINSTANCE="no" SYSMENU="yes" VERSION="1.0" WINDOWSTATE="maximize" >
DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#000000', EndColorStr='#0000FF')">
[/code]
|
|
|
|
|