Command Button - Use of Text Justification

J

John Phelan

How do I do a “left justification†of a text title in a Command button?
 
D

Dirk Goldgar

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.
 
S

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 "

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
D

Dirk Goldgar

"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.
 
Top