I'm trying to include the Scalabium TSMDBGrid into the IDE/Palette.
So far it has worked fairly well by using:
...
IDEScripter1.DefineClassByRTTI(TSMDBGrid, '', [mvpublic, mvpublished], true, TRedefineOption.roInclude);
...
RegisterComponent('Data Controls', TSMDBGrid, 'Grids,DBGrids');
...
However, it has various TNotifyEvents that aren't being registered.
I can't figure out how to get this declaration working:
TOnFilterApply = procedure (Sender: TObject; Field: TField; const FilterString: string; var Accept: boolean) of object;
When I try adding an OnFilterApply event to the grid, I get:
formMain: Event adapter not defined for 'OnFilterApply' property (TOnFilterApply) when evaluating instruction CallClassProc ($297,$1,$809B58,$46DF720,'Create').
Stack content is: [UnicodeString:D:\Data\EDI\In\850\Log\paccar850_ST-R437030_2017-07-17-210343-716.xml,Integer:157320624].
The property is published in the TSMDBGrid class:
property OnFilterApply: TOnFilterApply read FOnFilterApply write FOnFilterApply;
Cheers,
EdB