Overriding static methods... 
Author Message
 Overriding static methods...

Is there a way round overriding static methods in Delphi.

I'm building a TDBGrid component and would like to have more control
over when ShowEditor is called. This method is static and is declared as
static in TCustomGrid i think.


procedure TMyDBGrid.OnShowEditor(var CanEdit: Boolean);
   if DataSet.FieldByName('Type'.AsString) = 'A' then
        CanEdit := true
   else CanEdit := false;

... the OnShoeEditor wil then call the inherited method if CanEdit is

Is there win API message for trapping this - like WM_EDIT or something
which puts the grid in edit mode??

J?rgen Aase

Wed, 18 Jun 1902 08:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. overiding static methods in Delphi 1.0

2. Need help: got error trying to override a virtual method

3. Need help: got error trying to override a virtual method

4. Transaction Methods in Interbase using Delphi 3.0 -Problems in commit-rollback methods

5. Inherited static method, debuger says: '...no code generated..' ????

6. static variables

7. Static class members. singletons

8. Static data size/data segment to large

9. C type static vars in pascal?

10. "Static" variables

11. Static variables???

12. static/dynamic binding


Powered by phpBB® Forum Software