Shiny Language Reference
Language Reference > User Interface > Memo Boxes
setmemoboxfontcol
setmemoboxfontcol(int ID, int RGBCol);
Sets the colour of the font used for the memo box
The SETMEMOBOXFONTCOL statement sets the RGB colour of the font used for the text of a memo box.
Any change to the font is carried out immediately, and the control is redrawn to reflect the new font style.
Note that this statement is approximately 4 times faster than setmemoboxfont if the only requirement is to change the RGB colour of the font.
Parameters
ID
The control ID of the control you wish to change the style of
RGBCol
An integer representing a packed RGB colour value (refer to the RGB statement) specifying the colour of the text
Return Value
None
Example Code
// Create the memo box X: 10, Y:10 and sized 150*70
int iMemoBoxID = creatememobox(1, 10, 10, 150, 70);
// Let's have a 10 point, bright blue Arial font
setmemoboxfont(iMemoBoxID, "Arial", 12, RGB(0, 0, 200), False, False);
// Change the font colour to red
setmemoboxfontcol(iMemoBoxID, RGB(255, 0, 0));