|
How to use this event |
|
|
EurekaLog includes an "CustomButtonClickNotify" event that will be executed every time that an user will click on the "Customizable Help Button".
The syntax of this event is:
procedure MyCustomButtonClickNotify(EurekaExceptionRecord: TEurekaExceptionRecord; var CloseDialog: Boolean);
To use this event you must create a routine with the indicated parameters and assign it to the CustomButtonClickNotify EurekaLog variable, as shown in the following example:
uses ExceptionLog, ECore, ETypes; // The required units...
// This is a normal procedure (not a method)... procedure MyCustomButtonClickNotify(EurekaExceptionRecord: TEurekaExceptionRecord; var CloseDialog: Boolean); begin ... ... // Your code... ... end;
begin // Assign CustomButtonClickNotify variable to CustomButtonClickNotify procedure... CustomButtonClickNotify := MyCustomButtonClickNotify; end.
Note: to simplify management of your EurekaLog events, you can use the TEurekaLog.OnCustomButtonClickNotify event. |