Button Formatting

dynamictiger

Registered User.
Local time
Today, 14:05
Joined
Feb 3, 2002
Messages
270
Is it possible to have a selected letter on a button caption Bold and the rest normal text?
 
I wouldn't think so.

You could achieve something similar by creating three lables.

The first containing the Bold first letter. the second, having the rest of the text.

Overlay those with a third label containing a space character.

Use the OnClick event of the third label to do what you want with the command button. This should work fine for most things, but as the label is not a control there are some limitations.
 
dynamictiger,

Before you expend the effort ... a few points.

Peter's approach is the best that I know of. If in design mode
you "move to back" the command button and "move to front"
the labels it will look OK. But when you click on the button
it will gain focus and your labels will disappear.

A work-around is to make the labels into textboxes, set their
default value to their desired captions, and in the on-click
of your command button, set the focus to your textboxes
after it does its normal code.

hth,
Wayne
 

Users who are viewing this thread

Back
Top Bottom