On Sun, Oct 13, 2019 at 9:56 PM Anthony Walter via lazarus
<[email protected]> 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
--
_______________________________________________
lazarus mailing list
[email protected]
https://lists.lazarus-ide.org/listinfo/lazarus