Sometimes EurekaLog does not have an option to implement a behavior or visual appearance that you want. If this is the case - you can alter behavior and/or visual appearance of build-in dialog.
All EurekaLog dialogs are implemented in WinAPI, wrapped inside classes with lots of virtual and helper functions. Base dialog class is TBaseDialogClass from EDialog unit. All dialogs are child classes from this class. For example, MS Classic dialog is implemented as TMSClassicDialog class from EDialogWinAPIMSClassic unit. If you want to alter any aspect of default dialog - you need to sub-class it and override desired virtual methods. You can also call inherited helper methods to simplify developing.
Important Note: dialog class is responsible for almost whole exception processing. That's because "dialog" don't have to be visual. Think about Win32 service, system log, WER (Windows Error Reporting), etc. So, this is not always possible to distinguish between "error dialog" and "exception processing". That's why these concepts are both controlled by single "dialog" class. A primary method for visual dialog is ShowModalInternal method. But real entry point for dialog is Execute method, which performs all tasks: saving bug report, showing dialog, sending, etc.
First, you need to subclass the desired dialog class:
The example above uses MS Classic dialog as example. If you want to customize a different dialog - you will need to replace unit name and class name. If you want to customize more than one dialog - you will need to create multiple child classes.
You must use the same class name as original class. You'll have to append unit name to class ident to avoid compiler confusion. That way your class will look as original class, so it will use the same options.
Second, you need to register your class:
// Register dialog class to be the first in the list.
The TMSClassicDialog class in the example above is your class, which you have derived from default EurekaLog class.
The important piece here is to register your class as first, which is archived by using registering function with "First" suffix. Default class (from EurekaLog) will be listed after your class in registered dialogs. Any search for class by name will find your class, because it's listed first.
Now that preparations are completed - you can customize your class in any way you want, by overriding virtual methods. For example, if you want to replace dialog icons:
// If you want an icon with specified name - use:
If you want to modify WinAPI-based dialogs (such as MS Classic, EurekaLog, EurekaLog Detailed, etc.) by adding your own additional controls - see this article.
If you want to completely replace exception dialog - see this article.