[Lazarus] TCustomControl.Caption setter needs Invalidate
Vojtěch Čihák
vojtech.cihak at atlas.cz
Sun Jul 30 05:02:58 CEST 2017
Hi,
you have to override one of these methods:
procedure RealSetText; override; //this is done in TSpeedBtn
or
procedure TextChanged; override; //this is what I do in some components of ECControl
and call Invalidate; (and inherited;) there.
V.
______________________________________________________________
> Od: Alexey via Lazarus <lazarus at lists.lazarus-ide.org>
> Komu: Lazarus mailing list <lazarus at lists.lazarus-ide.org>
> Datum: 30.07.2017 00:50
> Předmět: [Lazarus] TCustomControl.Caption setter needs Invalidate
>
TCustomControl.Caption setter
(ie TControl.SetText)
misses Invalidate call.
So, my ATButtons (ATButton based on CustomControl) miss
visual update, when user changes app i18n.
--
Regards,
Alexey
--
_______________________________________________
Lazarus mailing list
Lazarus at lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus <https://lists.lazarus-ide.org/listinfo/lazarus>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170730/3c57a6df/attachment.html>
More information about the Lazarus
mailing list