How To…Create a Custom Query Wizard

Question

“How do I replace the existing query wizard with a custom one of my own?”

Solution

Use the built-in dialog replacement architecture to create and register your own query wizard.  Start by copying the existing code located in the daQueryWizard.pas file and renaming the class and file name.  Finally inside the initialization and finalization section, unregister the old wizard and  register the new one.

Download: CustomQueryWizard.zip

Sample Delphi code: