[fpc-pascal] fpcanvas and TFPEmptyXXX classes

Michael Van Canneyt michael at freepascal.org
Fri Jun 29 12:55:10 CEST 2007

On Fri, 29 Jun 2007, Graeme Geldenhuys wrote:

> Hi,
> What is the point/purpose of the TFPEmptyFont, TFPEmptyBrush,
> TFPEmptyXXX etc. classes?
> They come in handy while I am implementing (converting) the fpGUI
> canvas class to descend from the TFPCanvas class, so I don't get
> abstract errors at runtime.
> But do they serve another purpose?

No, they were used for the same reason as you. They can be used when
you implement a system which needs not all available options: descend
from them, and implement just what you need.


More information about the fpc-pascal mailing list