Table of Contents

ALIGN property (Image)

Description

Specifies the horizontal and vertical alignment of the image.

Property Value

A numeric value that describes the position of the image within its parent object:

ValueDescription
0Top-Left
1Top Center
2Top-Right
3Center-Left
4Centered
5Center-Right
6Bottom-Left
7Bottom-Center
8Bottom-Right

Property Traits

DevelopmentRuntimeIndexedScaledSynthetic
Get/SetGet/SetNoNoNo

Remarks

The ALIGN property is ignored if either of these conditions are met:

• If the ORIGIN property is set to a value other than (0,0)

• If the STYLE property is set to any value other than "Clip" (0).

Equated constants for the ALIGN property can be found in the PS_EQUATES insert record.

Example

 
// Set the alignment of the background image for the PNL_MAIN control

   $Insert PS_Equates

   Call Set_Property_Only( @Window : "PNL_MAIN.IMAGE", "ALIGN", 

                           PS_IA_BOTTOMRIGHT$ )