<p style="padding:0 0 0 0; margin:0 0 0 0;">Hi,</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">you have to override one of these methods:</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">procedure RealSetText; override; //this is done in TSpeedBtn</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">or</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"><span style="font-size: 13.3333px;">procedure TextChanged; override; //this is what I do in some components of ECControl</span></p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"><span style="font-size: 13.3333px;">and call Invalidate; (and inherited;) there.</span></p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"><span style="font-size: 13.3333px;">V.</span></p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">______________________________________________________________<br />
> Od: Alexey via Lazarus <lazarus@lists.lazarus-ide.org><br />
> Komu: Lazarus mailing list <lazarus@lists.lazarus-ide.org><br />
> Datum: 30.07.2017 00:50<br />
> Předmět: [Lazarus] TCustomControl.Caption setter needs Invalidate<br />
></p>
TCustomControl.Caption setter<br />
(ie TControl.SetText)<br />
misses Invalidate call.<br />
So, my ATButtons (ATButton based on CustomControl) miss<br />
visual update, when user changes app i18n.<br />
<br />
-- <br />
Regards,<br />
Alexey<br />
<br />
-- <br />
_______________________________________________<br />
Lazarus mailing list<br />
Lazarus@lists.lazarus-ide.org<br />
<a href="https://lists.lazarus-ide.org/listinfo/lazarus">https://lists.lazarus-ide.org/listinfo/lazarus</a><br />