Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista Tutorial - Custom dialog boxes

Reply
 
Old 05-20-2008   #1 (permalink)
Blinky
Guest


 
 

Custom dialog boxes

Hi everyone,

I have a project that has been a work in progress over some time.
I am in the process of upgrading and improving, howver my problem concerns
the fact I need to use custom dialog boxes.

I have been using a custom IE dialog box which, to be honest I don't have a
huge understanding of, but have got working within my code.
I now need to create a custom IE dialog with dynamic content.

This dialog uses a mix of radio, check, select and text inputs.

The radio selections are within one group - 3 of them are static but more
may need to be added on the fly.
There is one checkbox that is static, a dropdown (select) which is static
and a checkbox that is static.

I know this is a fairly loose description, but could someone help me with
the required code to use and support the IE dialog box.

PS. I have a fairly good understanding of VBScript for the majority of
projects I have undertaken, but I am somewhat lacking when it comes to using
IE dialogs whith VBScript.


Many thanks, Bill.



My System SpecsSystem Spec
Old 05-20-2008   #2 (permalink)
mayayana
Guest


 
 

Re: Custom dialog boxes

Here's a sample that might help. You might be able
to adapt it:

www.jsware.net/jsware/scripts.php3#msgb

The download has a couple of versions of a VBS class
that can be pasted into a script to provide custom
dialogues that look like system dialogues.
(Screenshot here:
www.jsware.net/jsware/msggal.php3
)

Custom msgbox works well with IE5/6, but in IE7
you can't use the Fullscreen property and sizing
at the same time, which means that you can't hide
the IE border and title bar. It still works, but it looks
clunky.

As for the specifics, that's really something you
need to work out yourself. Without a specific
question there's not much anyone can do to help
short of writing the msgbox webpage for you.
You need to know HTML
and hopefully CSS if you're going to write your own
msgbox pages. It's a lot of work. If you look at the
code in the download above you'll see that getting
the window to size properly and position the
elements well is the biggest part of the code.
Quote:

>
> I have a project that has been a work in progress over some time.
> I am in the process of upgrading and improving, howver my problem concerns
> the fact I need to use custom dialog boxes.
>
> I have been using a custom IE dialog box which, to be honest I don't have
a
Quote:

> huge understanding of, but have got working within my code.
> I now need to create a custom IE dialog with dynamic content.
>
> This dialog uses a mix of radio, check, select and text inputs.
>
> The radio selections are within one group - 3 of them are static but more
> may need to be added on the fly.
> There is one checkbox that is static, a dropdown (select) which is static
> and a checkbox that is static.
>
> I know this is a fairly loose description, but could someone help me with
> the required code to use and support the IE dialog box.
>
> PS. I have a fairly good understanding of VBScript for the majority of
> projects I have undertaken, but I am somewhat lacking when it comes to
using
Quote:

> IE dialogs whith VBScript.
>
>
> Many thanks, Bill.
>
>

My System SpecsSystem Spec
Old 05-20-2008   #3 (permalink)
Richard Mueller [MVP]
Guest


 
 

Re: Custom dialog boxes


"Blinky" <wehxxxnospamxx@xxxxxx> wrote in message
news:UxxYj.2794$IK1.142@xxxxxx-server.bigpond.net.au...
Quote:

> Hi everyone,
>
> I have a project that has been a work in progress over some time.
> I am in the process of upgrading and improving, howver my problem concerns
> the fact I need to use custom dialog boxes.
>
> I have been using a custom IE dialog box which, to be honest I don't have
> a huge understanding of, but have got working within my code.
> I now need to create a custom IE dialog with dynamic content.
>
> This dialog uses a mix of radio, check, select and text inputs.
>
> The radio selections are within one group - 3 of them are static but more
> may need to be added on the fly.
> There is one checkbox that is static, a dropdown (select) which is static
> and a checkbox that is static.
>
> I know this is a fairly loose description, but could someone help me with
> the required code to use and support the IE dialog box.
>
> PS. I have a fairly good understanding of VBScript for the majority of
> projects I have undertaken, but I am somewhat lacking when it comes to
> using IE dialogs whith VBScript.
>
>
> Many thanks, Bill.
>
I can only offer an example that might help. This uses IE to display a box
that indicates progress in a program. I use it when my script may take some
time:

http://www.rlmueller.net/IE%20Display.htm

I think it is based on work by Tom Lavedas. You can search the
microsoft.public.scripting.* newsgroups for more examples.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


My System SpecsSystem Spec
Old 07-18-2008   #4 (permalink)
Bishop
Guest


 
 

RE: Custom dialog boxes

Hi,
you also can create custom dialog boxes with Microsoft Standard Components
without using IE.

Here is a sample using VB-Script an Excel

http://www.scriptbox.at.tt/index.php...el%20Makro.vbs

"Blinky" wrote:
Quote:

> Hi everyone,
>
> I have a project that has been a work in progress over some time.
> I am in the process of upgrading and improving, howver my problem concerns
> the fact I need to use custom dialog boxes.
>
> I have been using a custom IE dialog box which, to be honest I don't have a
> huge understanding of, but have got working within my code.
> I now need to create a custom IE dialog with dynamic content.
>
> This dialog uses a mix of radio, check, select and text inputs.
>
> The radio selections are within one group - 3 of them are static but more
> may need to be added on the fly.
> There is one checkbox that is static, a dropdown (select) which is static
> and a checkbox that is static.
>
> I know this is a fairly loose description, but could someone help me with
> the required code to use and support the IE dialog box.
>
> PS. I have a fairly good understanding of VBScript for the majority of
> projects I have undertaken, but I am somewhat lacking when it comes to using
> IE dialogs whith VBScript.
>
>
> Many thanks, Bill.
>
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Dialog Boxes - All Windows Properties Boxes like folder option not displaying text General Discussion
All Text Cannot Be Seen In Dialog Boxes. Vista General
Copying Dialog Boxes Vista mail
Dialog Boxes Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46