[Lazarus] Why is TCustomControl.Canvas public?

Flávio Etrusco flavio.etrusco at gmail.com
Wed Jul 13 10:42:54 CEST 2011


Hello,
Wouldn't it better to make Canvas protected and pass it on the OnPaint event?
I'm almost sure is was also public in Delphi, and I don't even
remember Delphi having OnPaint in TCustomControl, but...
BTW why is OnPaint called inside TCustomControl.Paint instead of
TCustomControl.PaintWindow?

Best regards,
Flávio




More information about the Lazarus mailing list