[Lazarus] Increasingly frustrated with DbGrids

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Nov 2 11:49:39 CET 2015

On Mon, 2 Nov 2015 10:24:20 +0000
Tony Whyman <tony.whyman at mccallumwhyman.com> wrote:

> Intercept classes are a very useful technique for overcoming this 
> problem. I recently wanted to have a specialised TComboBox as a 
> TStringGrid Editor and defined an intercept class for this as:
> TComboBox = class(stdctrls.TComboBox)

Reintroducing 'TComboBox' can confuse users of your code and has no
benefit for grids. This should work as well:

TMyComboBox = class(TComboBox)


More information about the Lazarus mailing list