Text Alignment on Command Buttons

B

B F Cole

I have a form with a number of command buttons that are stacked on each
other, aligned left and all the same width, say 2". The text on each
command button varies in length. The default for this text is to center on
the command button. How do I get the command button text to align left?
Adding spaces to the right of the last character is a bit clumsy and doesn't
always produce the desired alignment to the left.

I would like for the form and buttons to look like this. Hope that it
doesn't get garbled with the posting.
 
M

Marshall Barton

B said:
I have a form with a number of command buttons that are stacked on each
other, aligned left and all the same width, say 2". The text on each
command button varies in length. The default for this text is to center on
the command button. How do I get the command button text to align left?
Adding spaces to the right of the last character is a bit clumsy and doesn't
always produce the desired alignment to the left.

I would like for the form and buttons to look like this. Hope that it
doesn't get garbled with the posting.


There are no alignment options for command buttons. You can
get pretty close to the same effect by using Labels or
Textboxes. Without additional code, neither will appear to
depress when you click on them. Also, label controls can
not receive the focus so you can't tab to them.
 

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