MattW
06-17-2009, 05:22 PM
Hi all,
I've got an HTA with 3 tabs, using the tabstrip control. I'd like to have 2 text boxes (with labels centered above) and 2 buttons on each tab. I've got the vbscript to go behind the buttons, I'm just having a hard time getting the boxes and labels to appear and line up correctly. I won't spam the whole code, but here's what I've got for the tabstrip control and the first tab.
<center>
<object id="TabStrip" classid="clsid:eae50eb0-4a62-11ce-bed6-00aa00611080" style="WIDTH: 100%; HEIGHT: 100%" >
<param name="ListIndex" value="0">
<param name="NewVersion" value="-1">
<param name="Accelerator" value="&A;B;">
<param name="TipStrings" value="Page 1;Page 2;Page 3;">
<PARAM NAME="FontCharSet" VALUE="0">
<PARAM NAME="FontPitchAndFamily" VALUE="2">
<PARAM NAME="FontWeight" VALUE="0">
<param name="Items" value="Get Groups;Compare Groups;Assign Groups;">
</object>
<div id="Page0" style="visibility:visible;position:absolute;left:expression((TabStrip.offsetLeft + 6) + 'px');top:expression((TabStrip.offsetTop + 30) + 'px');width:280px;height:200px;text-align:left;">
<table border=0 cellpadding=0 cellspacing=2>
<div class="alignCenter"><label class="alignTopLeft" for="User1">
<strong><b>New User ID.</b></strong></label></div>
<div class="alignCenter"<input name="User1" id="User1" size=20 maxlength="30" /></div>
<div class="alignCenter"><label class="alignTopLeft" for="User2">
<strong><b>Template User ID.</b></strong></label></div>
<div class="alignCenter"<input name="User2" id="User2" size=20 maxlength="30" /></div>
</table>
As is, neither field shows up and the labels appear vertically stacked. If I remove the second label and textbox, the first label appears left aligned above the second textbox, instead of centered. Only one button, because I'm hung on the fields. If someone could help me turn that pigs ear into a purse, I could fix the rest. Thanks!
I've got an HTA with 3 tabs, using the tabstrip control. I'd like to have 2 text boxes (with labels centered above) and 2 buttons on each tab. I've got the vbscript to go behind the buttons, I'm just having a hard time getting the boxes and labels to appear and line up correctly. I won't spam the whole code, but here's what I've got for the tabstrip control and the first tab.
<center>
<object id="TabStrip" classid="clsid:eae50eb0-4a62-11ce-bed6-00aa00611080" style="WIDTH: 100%; HEIGHT: 100%" >
<param name="ListIndex" value="0">
<param name="NewVersion" value="-1">
<param name="Accelerator" value="&A;B;">
<param name="TipStrings" value="Page 1;Page 2;Page 3;">
<PARAM NAME="FontCharSet" VALUE="0">
<PARAM NAME="FontPitchAndFamily" VALUE="2">
<PARAM NAME="FontWeight" VALUE="0">
<param name="Items" value="Get Groups;Compare Groups;Assign Groups;">
</object>
<div id="Page0" style="visibility:visible;position:absolute;left:expression((TabStrip.offsetLeft + 6) + 'px');top:expression((TabStrip.offsetTop + 30) + 'px');width:280px;height:200px;text-align:left;">
<table border=0 cellpadding=0 cellspacing=2>
<div class="alignCenter"><label class="alignTopLeft" for="User1">
<strong><b>New User ID.</b></strong></label></div>
<div class="alignCenter"<input name="User1" id="User1" size=20 maxlength="30" /></div>
<div class="alignCenter"><label class="alignTopLeft" for="User2">
<strong><b>Template User ID.</b></strong></label></div>
<div class="alignCenter"<input name="User2" id="User2" size=20 maxlength="30" /></div>
</table>
As is, neither field shows up and the labels appear vertically stacked. If I remove the second label and textbox, the first label appears left aligned above the second textbox, instead of centered. Only one button, because I'm hung on the fields. If someone could help me turn that pigs ear into a purse, I could fix the rest. Thanks!