----- Original Message ----- From: "Graeme Geldenhuys" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, April 16, 2007 4:47 AM
Subject: [lazarus] TCustomGrid not the same as Delphi


Hi

In Delphi's TCustomGrid the DrawCell() method is 'virtual abstract',
but in Lazarus it is virtual.


It's necesary to change it to virtual abstract?, I initially thought that it could be used for some standard drawing but eventually found it wasn't necesary.

I'm busy porting a custom component we created that was based on
TCustomGrid under Delphi 7 & Kylix 3 to Lazarus.  As I mentioned the
DrawCell was abstract under Delphi, but yet it does painting under
Lazarus.

Calling an abstract method doesn't sound right to me, but maybe it has some use, can you comment on the usefulness of this?. It's strange that delphi or kylix allows it (though, and I haven't made turbo delphi tests about it, it only support calling an abstract method using inherited; not inherited method;). In any case, FPC doesn't allow compile something like that either in delphi or objfpc mode.


Shouldn't that code in DrawCell move to the TCustomDrawGrid?  I
thought TCustomGrid was an abstract class, yet it contains no abstract
methods.


I think it can be removed if nobody uses that funcionality.

About abstract classes, appart of being a concept has some practical use?


--
Graeme Geldenhuys


Jesus Reyes A.
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! Regístrate ya - http://correo.yahoo.com.mx/
_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to