rbWiki > Plugins > Wizards > How To...Create a Custom Query Wizard

How To...Create a Custom Query Wizard

Table of contents
  1. 1. Question 
  2. 2. Solution

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:

initialization

  daUnRegisterWizard(TdaQueryDesigner);
  daRegisterWizard(TmyQueryDesigner);

finalization

  daUnRegisterWizard(TmyQueryDesigner);


end.
Tags
none

Files (0)

 
You must login to post a comment.