[Lazarus] Default color of form in RGB?

Bart bartjunk64 at gmail.com
Sun Oct 13 23:29:24 CEST 2019


On Sun, Oct 13, 2019 at 9:56 PM Anthony Walter via lazarus
<lazarus at lists.lazarus-ide.org> wrote:

> Does anyone know of a reliable way get the default color of a form (as in clDefault) in RGB? I am writing some code to prepare bitmaps and I want their background to match the default color of a form. Unfortunately I don't see a way to convert clDefault to an RGB value.

Asked a similar question once before.
Here's Zeljko's answer to that:

No, clDefault is incorrect at any time. To obtain color we have:
     function GetColorResolvingParent: TColor;
     function GetRGBColorResolvingParent: TColor;


-- 
Bart


More information about the lazarus mailing list