guides:programming:programmers_reference_manual:font_by_pos_message

FONT_BY_POS message

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.

ParameterDescription
column, rowWhen 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.
FontstructureAn @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")
  • guides/programming/programmers_reference_manual/font_by_pos_message.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1