How to avoid an "abstract error" with a descendant of TCustomGrid?

What is the minimum value I have to do to pull down a new control from TCustomGrid and get it in a form in the IDE without getting an "abstract error" in the IDE?

I tried everything for several days, but Im a bit delphi noob atm, zero percent success with TCustomGrid :(

If someone can help me just by getting the base descendant of TCustomGrid, which does nothing but implements the base TCustomGrid, that would be greatly appreciated. Thanks.

Edit - I know how to do the basics of creating controls, I just can't do it with TCustomGrid

+4
source share
2 answers

"Abstract error" usually means that there are virtual abstract functions that you need to implement in order to make the class work. For TCustomGrid, this should be the DrawCell method, as you can see here .

For a detailed example of creating your own custom grid based on TCustomGrid, see this tutorial .

+5
source

You get only abstract errors if you neglect the override and provide an implementation of the method declared as a virtual abstract in TCustomGrid or any of your ancestors.

So the solution would be to find it all (use ctrl-click for class names to get from ancestor to ancestor) and provide an override. Start with an empty implementation of your overrides. This may cause other errors and violation / unexpected behavior, but should bypass abstract errors.

0
source

All Articles