Returns or sets the shape of the object.
Object.Shape [ = enShape ]
The Shape property syntax has the following parts:
Name |
Type |
Description |
Object |
AButton |
AButton control |
enShape |
enumAButtonShape |
An integer specifying the type of alignment of the picture |
enumAButtonShape can be one of the following:
Name |
Value |
Description |
abtnRectangle |
0 * |
The button will have a rectangular shape. |
abtnRoundedRectangle |
1 |
The button will have a rounded rectangle shape. |
abtnEllipse |
2 |
The button will have an elliptical shape. |
The following statement changes the AButton's Shape to an ellipse:
btn1.Shape=abtnEllipse