Subject Help with Descending from TIB_CustomCombo
Author Mark Pickersgill

Anyone done some descending of TIB_ control classes??

I'm wanting to create my own Lookup combo that simply changes some
behaviour in the KeyPress method.

I've created a new component descending from TIB_CustomCombo, just
as TIB_LookupCombo does. eg.
TIB_LookupComboB = class(TIB_CustomCombo)

As a simple test, I copied and pasted the listing for
TIB_LookupCombo. After adding in the two defines:
{$DEFINE IBG_CustomGrid}
{$DEFINE IBG_LookupCombo}
The component compiles.

HOWEVER...if I override the KeyPress method and simple re-implement
(copy/paste from TIB_LookupCombo) an identical method, I get about
27 errors! All of the errors seem to be relating to undefined
properties, such as DataLink (from PopupList.DataLink) and BDataset
(I'm guessing it too is from the PopupList).

I've looked through the IB_Grid.pas file and tried most of the
defines or includes hoping for a pot-luck solution to no avail.

Can someone please point me in the right direction, offer some tips on
creating descendant classes like this?

Much appreciated!