Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WSHShell.Popup without buttons?

518 views
Skip to first unread message

Paul Jenkins

unread,
Oct 1, 2000, 3:00:00 AM10/1/00
to
Can anyone tell me how to use WSHShell.popup to display a popup without
buttons? Or, if there is another way to do this, using a different
function, I'd appreciate suggestions. Thanks.

Paul

Dominic Marks

unread,
Oct 1, 2000, 3:00:00 AM10/1/00
to
You can make a VB ActiveX control in place of your form. Of course you'd
need to distribute the control with your script. Better than that why not
use the MSG.WSC component by Michael Harris - This lets you use Internet
Explorer as a display.

Get MSG.WSC from http://cwashington.netreach.net/.

Dominic Marks
dominic_marks*@hotmail.com

jim_w

unread,
Oct 2, 2000, 3:00:00 AM10/2/00
to
hi Paul,

No, you can't get rid of that button, but you CAN use something that looks
virtually identical to a message box, but has no titlebar buttons...

Coding inside IE? Then take a look at the "Erstaz Message Box" found on the
page mentioned below. It's all DHTML, and unless you look very closely,
it's indistinguishable from the real thing. O.K. it does have a user close
button in the title bar, but Hey!, its DHTML! All you have to do is remove
the button tag with the btnUserClose id, and remove the statement that sets
the "pointer" to the onClick event, and the user close button will be gone.

Coding a stand-alone script? Sorry, IE takes sssoooooo lllooonnngggggg to
load. You stand-alone scripters might like take a look at the "Fake Message
Box" helper utiltiy mentioned on the same page (click on "Ersatz MB",
they're both together). It has no buttons at all on the titlebar, and loads
much faster than IE (about 20x faster). It's written in "rapidQ basic"
(sorry, a non-microsoft product), but hey, that's why it's so lite weight!

http://home.att.net/~wshvbs/index.htm

cheers, jw

btw, would some kindly person please explain why all these requests to get
rid of the MB titlebar button(s)??? I find a great number of things about
programming to get annoyed about, but those button(s) on the titlebar never
got to me...

otoh, I CAN understand that annoyance with the "vbScript" titlebar caption.
In most programming situations the titlebar caption presents an opportunity
to introduce the contents (and set the tone) of the message which is spelled
out in the "body" of the message box. And, unless you happen to be one of
those weird scripters, the vast majority of the normal public have no idea
what "vbScript" means. So in effect, the titlebar caption space is
wasted...


"Paul Jenkins" <paul.j...@empire.ca> wrote in message
news:O9afQ68KAHA.249@cppssbbsa05...

Paul Jenkins

unread,
Oct 9, 2000, 3:00:00 AM10/9/00
to

You're response are all appreciated, even though some of you may have
misunderstood my original question (and that was probably due to my
terminology, as I'm somewhat new to VBScript). My question was not about
getting rid of the standard CLOSE button on the Title bar. What I really
wanted to know was how to get rid of the OK button which appears on the
WSHShell.Popup form. I want to display a brief message for a couple of
seconds at certain strategic points in my script, indicating what is
happening, such as "Setup will now update the registry ...", etc. My
apologies if my initial attempt at explaining this caused confusion.
Meanwhile, does anybody know a nice way to do display progress messages,
without form buttons? Thanks.

"jim_w" <jwarrington*noSteekin*@*Spam*worldnet.att.net> wrote in message
news:OKrmZrLLAHA.253@cppssbbsa05...> hi Paul,

Dominic Marks

unread,
Oct 9, 2000, 3:00:00 AM10/9/00
to

You have to use controls for this sort of thing. Either custom written forms
or you can use MSG.WSC as mentioned in the above post. Either way you have
to register the control.

Dominic Marks

0 new messages