Override delphi events
Posted on 2010-09-16
I want to find out how to override existing events in the following manner.
I have created a "manager object" for tables and datasets. The manager object does many similar things happening to all my connected tables and datasets.
Therefore I want to assign for example a "before post" that will be executed ON TOP of the before post I put in my table.
Short saying I want to have something like...
procedure TMyManagerClass.BeforePost(dataset: TDataSet); override;
// do the things that I keep doing all the time
inherited; // <--do whatever extra functionality user defines on his normal "BeforePost" method
procedure TMyManagerClass.DblClick(view: TcxGridTableView); override;
// do the things that keep happening on the grid
inherited; //<-- if user defines extra funtionality on the dblclick, do it now
To make it more simple, I want to do FIXED ADDITIONAL OPERATION to the one specified by the event the user can define, but do it through a manager class that contains a constructor that receives one dataset and one TcxTableView.