Styling Objects In A VBa Form

C

colin.steadman

I've just opened a Word template that pops up a form to enable you to
quickly create a fax header. The form looks as thought it originated
from Word 2 as theres loads of 'Wordbasic.' type commands in it and the
form itself is created on the fly from code which is how it used to be
done back in the Word 2 days if I recall, ie:

WordBasic.BeginDialog 670, 370, "Facsimile Details",
"FacsimileDetails.Dynamic1"
WordBasic.Text 18, 26, 65, 13, "Recipient:", "Text1"
WordBasic.TextBox 90, 21, 200, 18, "Recipient"

Anyway, my question is about the styling of this form. The frames have
rounded edges, the buttons look glassy and the option buttons have blue
marks in them when clicked. How was this done? There are a few
styling options in Word 2003 for form objects, but none of them seem to
allow me to emulate this other form.

Anyone know what they did?

Thanks,
Colin
 
J

Jonathan West

This is an old Word 95 template and the code was originally in WordBasic,
and was automatically converted to VBA when you opened the template in your
current version of Word. Normally, such automatic conversion is pretty dodgy
and the fact that it works is something of a miracle.

WordBasic had a much more primitive way of handling custom dialogs called
UserDialogs. I would guess that somehow your Windows XP theming has been
applied to the dialog. Even if you like the layout, trying to create
UserDialogs in VBA with no current documentation and no visual editor is
going to be a painfully slow process.

But if you want to try, the most relevant documentation is the Word 95
WordBasic help file. You will need to work out from the code you already
have how the syntax has changed from Wordbasic to VBA. You can download it
from here.

Word 95 WordBasic Help File
http://www.microsoft.com/downloads/...FamilyID=1A24B2A7-31AE-4B7C-A377-45A8E2C70AB2
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top