Label Image Alignment (ImageLabelAlign)
This property defines the position of the image relative to the label text, when the tab or button label specifies both an image and a text..
ImageLabelAlign=
"
Left
| Right
|
Top
| TopLeft
| TopRight
| Bottom
|
BottomLeft
| BottomRight
"
Value | Meaning | Example |
---|---|---|
Left
|
Image is placed to the left of the label | |
Right
|
Image is placed to the right of the label | |
Top
|
Image is placed above the label | |
TopLeft
|
Image is placed above the label, to the left | |
TopRight
|
Image is placed above the label, to the right | |
Bottom
|
Image is placed below the label | |
BottomLeft
|
Image is placed below the label, to the left | |
BottomRight
|
Image is placed below the label, to the right |
Usage
Dynamic? | Yes |
Supported in Grid? | No |
Dependencies: | For command buttons, this property is
supported only when the Representation property is set to
Uniface . |
Description
By default, when images are defined for tabs and command buttons, they are positioned to the left of the label. You can change the position using the ImageLabelAlign property.
Command Button
For command buttons, this property is supported
only when the Representation property is set to Uniface
.
Note: The size of the widget itself cannot be changed dynamically. If you change the ImgSize or ImageLabelAlign properties in ProcScript, ensure that the command button dimensions are large enough for the image and the text to fit.
Setting in ProcScript
The following ProcScript code sets the image position right relative to the label.
$fieldproperties(TABEX) = "imagelabelalign=right"