Returns or sets the alignment of the Picture object on the button face area in the object.
Object.PictureAlignment [ = enAlignment]
The PictureAlignment property syntax has the following parts:
Name |
Type |
Description |
Object |
AButton |
AButton control |
enAlignment |
enumAButton |
An integer specifying the type of alignment of the Picture object on the button face area in the object. |
enumAButtonPictureAlignment can be one of the following:
Name |
Value |
Description |
abtnLeft |
0 |
The picture is in the left on the inner area of the button. Five percent of the control inner width is used for spacing between the edge and the picture. |
abtnRight |
1 |
The picture is in the right on the inner area. |
abtnCenter |
2 * |
The picture is centered on the inner area. |
abtnTopLeft |
3 |
The picture is in the top left. |
abtnTopRight |
4 |
The picture is in the top right. |
abtnTopCenter |
5 |
The picture is in the top center. |
abtnBottomLeft |
6 |
The picture is in the bottom left. |
abtnBottomRight |
7 |
The picture is in the bottom right. |
abtnBottomCenter |
8 |
The picture is in the bottom center |
abtnAtText |
9 |
Text will be displayed on top of the picture. |
abtnLeftText |
10 |
The picture will be displayed left of the text. Five percent of the control width is used for spacing between the text and the picture. |
abtnRightText |
11 |
The picture will be displayed right of the text. |
abtnAboveText |
12 |
The picture will be displayed above the text. |
abtnBelowText |
13 |
The picture will be displayed below the text. |
The PictureAlignment, as well as the PictureDrawMode, can be overridden by the user selecting other values on the 'Layout' tab of the Properties menu of the AButton. A picture can also be used as the background with text over it for some attractive combinations.
The following statement changes the AButton's PictureAlignment so the picture starts on the left of the inner area of the button :
btn1.PictureAlignment=abtnLeft
Picture, PictureDrawMode, PictureHeight, PictureLeft, PictureTop, PictureWidth