Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

See also

COLORS $Insert recordFONT_BY_POS messageTEXT_BY_POS messageSTYLE_BY_POS message

Example

Code Block
/* Set background color to yellow, foreground color to black, background color if cell is selected to green, and foreground color if cell is selected to red */
 
$insert colors
 
Declare function Send_Message
Back_color = YELLOW$
Fore_color =  BLACK$
Back_sel_color = GREEN$
Fore_sel_color = RED$
 
/* Set row 1, column 2 to desired color scheme */
rv = Send_Message(@Window:".TABLE_1", "COLOR_BY_POS", 2, 1, Back_color:@FM:Fore_color:@FM:Back_sel_color:@FM:Fore_sel_color)
 
/* Set all cells in column 2 to desired color scheme */
rv = Send_Message(@Window:".TABLE_1", "COLOR_BY_POS", 2, 0, Back_color:@FM:Fore_color:@FM:Back_sel_color:@FM:Fore_sel_color)
 
/*  Set all cells in row 7 to desired color scheme */
rv = Send_Message(@Window:".TABLE_1", "COLOR_BY_POS", 0, 7, Back_color:@FM:Fore_color:@FM:Back_sel_color:@FM:Fore_sel_color)
 
/* Set the color of the text for the first column header */
hdr_color = RED$
rv = Send_Message(@window:".TABLE_1","COLOR_BY_POS",1,-1,hdr_color)
 
/* Set the color of the text for the third row header */
hdr_color = GREEN$
rv = Send_Message(@window:".TABLE_1","COLOR_BY_POS",-1,3,hdr_color)