Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


HTA Script, center button on form?

 
Logged in as: Guest
arrSession:exec spGetSession 2,7,50238
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> HTA Script, center button on form?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 HTA Script, center button on form? - 8/1/2007 8:59:20 AM   
  simonc1970

 

Posts: 13
Score: 0
Joined: 5/7/2007
Status: offline
Hello, can anyone tell me how to make the reboot button in my HTA script be centered on the from when it loads?


<html>
<head>
<title>Boehringer Ingelheim Image Download PE4</title>
<HTA:APPLICATION
  ID="MapShare"
  INNERBORDER="no"
  BORDER="dialog"
  MAXIMIZEBUTTON="no"
  MINIMIZEBUTTON="no"
  CONTEXTMENU="no"
  APPLICATIONNAME="MapShare"
  SCROLL="no"
  SINGLEINSTANCE="yes"
  WINDOWSTATE="maximize"
>
</head>
</Script><Body>

<P>
<body STYLE="font:13 pt arial; color:white;
filter:progid:DXImageTransform.Microsoft.Gradient
(GradientType=0, StartColorStr='#000000', EndColorStr='#0000FF')" onContextMenu="copyRight">
<BR>
<BR>

<input id=runbutton class="button" type="button" value="Reboot Computer" name="ok_button"
onClick="RunReboot">
&nbsp;&nbsp;&nbsp

</BODY>
 
 
Post #: 1
 
 RE: HTA Script, center button on form? - 8/1/2007 11:11:28 AM   
  dm_4ever


Posts: 2434
Score: 38
Joined: 6/29/2006
From: Orange County, California
Status: offline
You mean like this...


      

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to simonc1970)
 
 
Post #: 2
 
 RE: HTA Script, center button on form? - 8/1/2007 12:42:26 PM   
  Rischip


Posts: 468
Score: 2
Joined: 3/26/2007
Status: offline
That will work centered left to right.

This will work absolute center and will adjust where center is when a resize event occurs.

      

_____________________________

Rischip
Author of - The Grim Linker

(in reply to dm_4ever)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> HTA Script, center button on form? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts