SetHeaderCellFont

Change the font of an individual header row

WSupported on Windows

 

 

 

status = %AX_CALL(axlist_id, "SetHeaderCellFont", row, face_name, point_size, 
&        rendition)

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)

row

The row number of the header whose font is being modified. (n)

face_name

The name of the Windows font. (a)

point_size

The size of the Windows font in points. (n)

rendition

Zero to turn off all renditions, or one or more of the following options, which can be combined using .BOR. or the vertical bar (|) operator: D_CELL_BOLD, D_CELL_ITALIC, D_CELL_UNDER (underlined). (n)

Discussion

The SetHeaderCellFont method sets the font and rendition for a specified row of the header. The specified font overrides any font and point size specified by the HeaderFontName and HeaderFontSize properties.

See also

Examples

The following example sets the font of the second row of headers to Times New Roman, increases the current font size by 1, and leaves the style unchanged.

xcall l_status(listid, D_LAXCTRL, axctrl)
xcall ax_call(axctrl, "GetHeaderCellFont", 2, face, ptsize, style)
face = "Times New Roman"
xcall ax_call(axctrl, "SetHeaderCellFont", 2, %atrim(face), ptsize+1, style)