Board index » cppbuilder » pointer to event handler
M. Noroozi Eghbali
![]() CBuilder Developer |
pointer to event handler2006-08-24 05:10:24 AM cppbuilder37 Hi all, I need to pass a pointer of an event handler to a member function of a form. when I add "_closure" keyword in the poiter definition, I got lots os errors. Would you please let me know where shall I put the "_closure" keyword in the below definition (the last parameter)? ------------------------------------ void __fastcall TForm1::UserDefinedRelationListKeyDown(TObject *Sender, bool IsNP, WORD &Key, TShiftState Shift, TTntComboBox *FocusObject, TButton *AddEditButton, void (_fastcall *ClickFunction)(TObject *)) ------------------------------------ Thank you, Mehrdad |