peImageAlign - Button
Determines the alignment of an image on a button
Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None
Syntax
Property Integer peImageAlign
| Access Type | Syntax |
|---|---|
| Read Access: | Get peImageAlign to IntegerVariable |
| Write Access: | Set peImageAlign to IntegerVariable/Value |
Description
peImageAlign determines the alignment of an image (psImage) on a button.
It supports the following values:
| Constant | Meaning |
|---|---|
| Button_ImageList_Align_Left | Align with the left of the button |
| Button_ImageList_Align_Right | Align with the right of the button |
| Button_ImageList_Align_Top | Align with the top of the button |
| Button_ImageList_Align_Bottom | Align with the bottom of the button |
| Button_ImageList_Align_Center | Align in the center of the button |
Sample
This sample shows a button with an image that is aligned in the center of the button.
Object oImageButton is a Button
Set Size to 14 27
Set Location to 20 131
Set psImage to "ActionSave.ico"
Set peImageAlign to Button_ImageList_Align_Center
Procedure OnClick
End_Procedure
End_Object