[lazarus] Printers unit

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Nov 7 12:44:31 EST 2002


On 07 Nov 2002 11:45:23 -0600
Tony Maro <tony at maro.net> wrote:

> On Thu, 2002-11-07 at 10:31, andrew johnson wrote:
>  
> > yes you definitely should use Pen's and Brush's,
> 
> I was afraid you were going to say that.  The problem is I don't
> understand why a Pen or Brush is so... convoluted.  Like, why is it a
> TPersistent?  What advantage is that over just a plain TObject...?

TPersistent is compiled with the $M+ compiler directive and supports RTTI.
In other words: It is streamable and can be used in the object inspector.
More words: Delphi compatibility.


Mattias


> 
> >   TPSPen = class(TPSObject)
> 
> Thanks for the samples.  I'll build on that.
> 
> -Tony
> 
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives






More information about the Lazarus mailing list