Login | |
|
 |
RE: How to dynamically change an HTA icon? - 10/15/2008 11:07:12 PM
|
|
 |
|
| |
TKS
Posts: 187
Score: 0
Joined: 5/16/2008
Status: offline
|
I still haven't found anything, but I don't think this can be done in vbs. I'ma start looking in Javascript.
|
|
| |
|
|
|
 |
RE: How to dynamically change an HTA icon? - 10/16/2008 1:44:02 AM
|
|
 |
|
| |
dm_4ever
Posts: 2669
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
I believe this is correct oHTA.icon = "something2.gif", but might require some type of refresh to take effect. (location.reload(true) does not appear to be enough)
_____________________________
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
|
|
| |
|
|
|
 |
RE: How to dynamically change an HTA icon? - 10/17/2008 12:54:53 AM
|
|
 |
|
| |
TNO
Posts: 1284
Score: 12
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
|
I haven't checked but I believe a few of the HTA attributes are Read Only, or only looked at when the application starts as a preprocessing instruction. As a more powerful alternative you could just load the HTA without a top bar and without a window border, then just create your own with something like <div style="position:absolute;top:0px;left:0px;right:0px;height:20px;z-index:1000"></div> Just don't forget the close button, minimize button, and all that other jazz Edit: Actually, don't put it in an inline style, put it in a stylesheet and give the div an ID: #TitleBar{ position:absolute; top:0px; left:0px; right:0px; height:20px; z-index:1000; }
< Message edited by TNO -- 10/17/2008 12:56:54 AM >
_____________________________
To iterate is human, to recurse divine. -- L. Peter Deutsch
|
|
| |
|
|
|
 |
RE: How to dynamically change an HTA icon? - 10/17/2008 8:33:52 PM
|
|
 |
|
| |
TKS
Posts: 187
Score: 0
Joined: 5/16/2008
Status: offline
|
Hey TNO, I completely forgot about that. And the nice thing about that is its very DOM compatible. Thanks for the reminder & code.
|
|
| |
|
|
|
|
|