Command Button - Use of Text Justification

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I do a “left justification†of a text title in a Command button?
 
John Phelan said:
How do I do a "left justification" of a text title in a Command
button?

I don't think you can. But you could create a label that looks like a
button, and either use that label's Click event as you would a button's
click event, or put a transparent command button over it. You won't get
the exact same user-interface behavior as you would with a simple
command button, but it could be pretty close.
 
You can fake Left Alignment by padding the Caption with SPACE
characters. It does not always work via the control's Caption on the
Property Sheet but you can do it programmatically.

Me.Command12.Caption = "test "

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
"Stephen Lebans"
You can fake Left Alignment by padding the Caption with SPACE
characters. It does not always work via the control's Caption on the
Property Sheet but you can do it programmatically.

Me.Command12.Caption = "test "

Very clever! I didn't think of that.
 

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

Back
Top