[Lazarus] How to obtain the "real" color of a control @runtime?

Bart bartjunk64 at gmail.com
Tue Dec 23 18:30:00 CET 2014


On 12/23/14, zeljko <zeljko at holobit.net> wrote:

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

Thanks.

I'm trying to create an "overlay" for a TEdit which van display a
TextHint property
(http://docwiki.embarcadero.com/Libraries/XE2/en/Vcl.StdCtrls.TCustomEdit.TextHint).
Life would be so much easier if we could draw on the TEdit's canvas
(or even if a TEdit could be the parent of some other TComponent.

Bart




More information about the Lazarus mailing list