XMetaL Tips and Tricks
- You must be logged in to reply to this topic.
XMetaL Community Forum › XMetaL Tips and Tricks › XFT: Programmatically Setting XFT ForeColor and BackColor
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.
Do you have pricing or sales inquiries?
Do you require technical support or have feature requests?
Contact us and we will be happy to answer your questions.