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