[Lazarus] Paint over TEdit control

Jürgen Hestermann juergen.hestermann at gmx.de
Fri Jun 20 19:09:02 CEST 2014


Am 2014-06-20 08:06, schrieb Graeme Geldenhuys:
> On 2014-06-18 17:37, Krzysztof wrote:
>> Is it possible to paint over TEdit control? I need this for windows and
>> linux (qt, gtk). For now I need only draw text
> You can't. The stock LCL controls are not meant for customisation - they
> are for native look only and for adhering to the underlying widgetset's
> themes. If you want customisation, use custom drawn components instead.
>

I am also fighting with multicolor text in TLabels etc.
Currently I am simply painting into the form which works reasonable
(and is asonishing fast) but then I have to do all the other things like
anchoring, repainting, storing displayed text etc. myself too.
Can you name some custom drawn compontents that could
replace for example a TLabel component.

And another aim I am trying to achive is an edit compontent
with (self drawn) multi color text. Is there one?




More information about the Lazarus mailing list