Set the font for the text of the specified item. Item is specified either by position or by (column, row) coordinates (for an edit table control).
Edit table.
text = Send_Message(controlID, "FONT_BY_POS", column, row, fontstructure)
For FONT_BY_POS, the Send_Message function has the following parameters.
Parameter | Description |
---|---|
column, row | When column and row are both positive, applies the fontstructure to the cell; when column is positive and row is 0, applies fontstructure to the entire column; when column is 0 and row is positive applies the fontstructure to the entire row. When the column is positive and row is -1 the row button font is set. When the row is positive and the column is set to -1 the column header font is set. |
Fontstructure | An @SVM-delimited array. (Refer to the FONT property in Chapter 4: Properties.) |
/* Set the header in column 1 to desired FONT scheme */ rv = Send_Message(@Window:".TABLE_3", "FONT_BY_POS", 1, -1, "Times New Roman") /* Set the 5th row's button font to Helvetica */ rv = Send_Message(@Window:".TABLE_3", "FONT_BY_POS", -1, 5, "Helvetica")