XMetaL Tips and Tricks

XMetaL Community Forum XMetaL Tips and Tricks XFT: Programmatically Setting XFT ForeColor and BackColor

  • Derek Read

    XFT: Programmatically Setting XFT ForeColor and BackColor

    Participants 1
    Replies 0
    Last Activity 13 years, 5 months ago

    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.

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support