[Lazarus] TImage - Getting image properties in 'canvas space'

Hans-Peter Diettrich DrDiettrich1 at aol.com
Thu Apr 19 14:35:49 CEST 2012


michael.vancanneyt at wisa.be schrieb:

>> type
>>  // Friend class to get access to protected methods
>>  THackCustomEdit = class(TCustomEdit);
> 
> The Hack says it all. Here you are working outside regular OOP rules.

It's only working around OPL deficiencies, for which e.g. C++ offers 
different OOP means (friend...). Without the introduction of means, upon 
which above hack is based, the OPL (and VCL/LCL) would be much less useful.

DoDi





More information about the Lazarus mailing list