SetHeaderCellAlignment

Change the alignment of a header cell

WTSupported in traditional Synergy on Windows

 

 

 

status = %AX_CALL(axlist_id, "SetHeaderCellAlignment", column, justification)

Return value

status

Returns true if successful, otherwise false. (n)

Arguments

axlist_id

The ID for the ActiveX Toolkit list. This ID can be retrieved with L_STATUS. (n)

column

The column number of the header whose justification is being modified. (n)

justification

One of the following: (n)

1 = Left-justified

2 = Centered

3 = Right-justified

Discussion

The SetHeaderCellAlignment method sets the justification of the header specified by column.

See also

Examples

The following example appends the string “ - Audited” to the text of the third header cell and ensures that the text is left justified.

xcall l_status(listid, D_LAXCTRL, axctrl)
xcall ax_call(axctrl, "GetHeaderCell", 3, text)
text = %atrim(text) + " - Audited"
xcall ax_call(axctrl, "SetHeaderCell", 3, %atrim(text))
xcall ax_call(axctrl, "SetHeaderCellAlignment", 3, 1)