Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-07

TCustomControl.Caption setter needs Invalidate

5 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alexey

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

Reply by email

Vojtěch Čihák

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.

Reply by email