bgiSetRichTextBackgroundColour

Sets the background color of the rich text box control. Takes richTextBoxID (Int), r (Int), g (Int), and b (Int). Returns 1 on success, 0 if rich text box not found.

BGI GUI

Parameters & Returns

Parameters

richTextBoxID Int
r Int
g Int
b Int

Returns

Int

Quick Summary

Sets the background color of the rich text box control. Takes richTextBoxID (Int), r (Int), g (Int), and b (Int). Returns 1 on success, 0 if rich text box not found.

Technical Exegesis...

Sets the background color of a rich text box control. Searches gizmoMap for the rich text box ID. Sends EM_SETBKGNDCOLOR message with RGB(r, g, b) color value. Returns 1 on success, 0 if rich text box not found.

This function sets the control's background color (not text color - use bgiSetRichTextFormat for text color). RGB values are 0-255 for red, green, and blue components. Default background is typically white (255, 255, 255).

Example

Example.bam
; No example implemented yet