overriding an OnObjectClick event....

Hi there!

there is a problem:

i'm using C++ Builder 5 and FastReport 2.51. in my app i have to allocate memory dinamycally for TfrReport class, i mean in runtime so i'm unable to write some code to an OnObjectClick event. i could have done it only in designer mode. So, i decided to solve this problem his way:

1) create an derived class myTFRREPORT
2) create my function (objclick) which is supposed to replace the standart event for OnObjectClick.

this is the code:
/*********************************************
class myTFRREPORT :public TfrReport
{

public:
__fastcall myTFRREPORT(TComponent * AOwner):TfrReport(AOwner)

{OnObjectClick = objclick; };

void __fastcall objclick(TfrView * View);
} ;


/*************************************

in the objclick function i call the ShowMessage ("hi!") function.

AND THIS DOESNT WORK (i'm given no error messages).

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.