Is it possible to left align text on command buttons?

J

Jesper

Hi everyone,
Is it possible to left align text on command buttons? It
seems it can only be centered.
 
B

Bandit

-----Original Message-----
Hi everyone,
Is it possible to left align text on command buttons? It
seems it can only be centered.
.

I use label instead when I want to make them appear with
mouseover color changes, etc. You may want to try using a
label instaed and program it's onClick event. I believe
that command buttons are always centered.

Have a good day,
Bandit
 
C

Chris Darnell

Nope. Command button text is always centered.

The only option may be to add enough chr(255) characters to the right of the
real text to cause the text to "look" left aligned. If you are manually
typing the command button caption, you can add chr(255) by holding down the
Alt button and typing 255 using the *numeric keypad*. Release the Alt
button and a blank character will be then be added to the caption. Continue
adding those until the button caption looks like you want it to. Access
won't trim these blank spaces, but it will trim normal spaces.

Chris Darnell
 

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