On Tue, 13 Jun 2000, Rohit Gupta wrote:

> 1.  Define the class as you want it, ignore the complaints of the compiler.
> note you cant override it if the original is private.

Unfortunately, if I do that then the original stuff will not be run, and I
don't know if that will have advserse effects on the operation of the
grid.

> The only problem is that any component that in the vcl that refers to the
> delphi original wont have your intervened class.

Thats fine, I wouldn't want other components to use this code, unless they
were descending from my component.  The problem lies in handling the
editing of a cells contents.  At present I have overriden
TStringGrid.SetEditText which is in the protected section, this works fine
for editing the grid with the keyboard, but I also need to trap setting
the grid contents directly via the Cells[] propety, only SetCells is
private.

However, I think I may have solved it by 'reintroducing' the Update
method.

-- 
I am naked, hear me purr.
Now Playing: Dark Tranquillity - Nether Novas

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to