This document (attached PDF) describes how to set ForeColor and BackColor properties for XFT controls programmatically.
The main trick here is that XFT requires colour values to be specified as COLORREF values. However, the document also includes a reference table listing commonly used colours (sorted by RRGGBB as most people are probably familiar with that notation from CSS) as well as a script that shows how to use the SQExtras.dll to show a colour picker and then convert any selected colour to a COLORREF value.
© Copyright 2022. JustSystems Corp. All rights reserved.