LEFT, RIGHT, CENTER, DECIMAL (set justification)

Top  Previous  Next

 

 

LEFT( [offset] )

RIGHT( [offset] )

CENTER( [offset] )

DECIMAL( [offset] )

offset

An integer constant specifying the amount of offset from the justification point. This is in dialog units (unless overridden by the THOUS, MM, or POINTS attribute on a REPORT). For the LEFT attribute, this is PROP:LeftOffset (equivalent to {PROP:LEFT,2}). For RIGHT, this is PROP:RightOffset (equivalent to {PROP:RIGHT,2}). For CENTER, this is PROP:CenterOffset (equivalent to {PROP:CENTER,2}). For DECIMAL, this is PROP:DecimalOffset (equivalent to {PROP:DECIMAL,2}).

The LEFT, RIGHT, CENTER, and DECIMAL attributes specify the justification of data printed. LEFT (PROP:LEFT) specifies left justification, RIGHT (PROP:RIGHT) specifies right justification, CENTER (PROP:CENTER) specifies centered text, and DECIMAL (PROP:DECIMAL) specifies numeric data aligned on the decimal point. These attributes are valid in Clarion Win32 Windows, and also for REPORT structures in both Clarion Win32 and Clarion#.

On the LEFT attribute, offset specifies the amount of indention from the left. On the RIGHT attribute, offset specifies the amount of indention from the right. The offset parameter on the CENTER attribute specifies an offset value from the center (negative = left offset). On the DECIMAL attribute, offset specifies the decimal point's indention from the right.

Window Usage

The following controls allow LEFT or RIGHT only (without an offset parameter):

BUTTON, CHECK, RADIO.

The following controls allow LEFT(offset), RIGHT(offset), CENTER(offset), or DECIMAL(offset):

COMBO, ENTRY, LIST, SPIN, STRING.

The TEXT control allows LEFT, RIGHT, and CENTER (without an offset parameter).

Report Usage

The following controls allow LEFT or RIGHT only (without an offset parameter):

CHECK, GROUP, OPTION, RADIO.

The following controls allow LEFT(offset), RIGHT(offset), CENTER(offset), or DECIMAL(offset):

LIST, STRING.

The TEXT control allows LEFT, RIGHT, and CENTER (without an offset parameter).

Example:

Rpt   REPORT,AT(1000,1000,6500,9000),THOUS

Detail DETAIL,AT(0,0,6500,1000)

       LIST,AT(0,20,100,146),FORMAT('800L'),FROM(Fname),USE(?Show2),LEFT(100)

      END

     END

 

WinOne WINDOW,AT(0,0,160,400)

       COMBO(@S8),AT(120,120,20,20),USE(?C1),FROM(Q1:F2),RIGHT(4)

       LIST,AT(120,0,20,20),USE(?L1),FROM(Que1),CENTER

       SPIN(@N8.2),AT(280,0,20,20),USE(SpinVar1),FROM(Q),DECIMAL(8)

       TEXT,AT(20,0,40,40),USE(E2),LEFT(8)

       ENTRY(@S8),AT(100,200,20,20),USE(E2),LEFT(4)

       CHECK('&A'),AT(0,120,20,20),USE(?C7),LEFT

       OPTION('Option'),USE(OptVar)

        RADIO('Radio 1'),AT(120,0,20,20),USE(?R1),LEFT

        RADIO('Radio 2'),AT(140,0,20,20),USE(?R2),RIGHT

       END

      END