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 <[email protected]>
Komu: Lazarus mailing list <[email protected]>
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
[email protected]
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
_______________________________________________
Lazarus mailing list
[email protected]
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to