OTA - Menu Wizards

Wizards are simply hooks you inject into the IDE. You supply information to allow the IDE to show either an object in the Object Repository, Menu Item in the Help menu or create an Add-in feature to the IDE When the user selects the the Wizard it calles the Execute method to allow you to do your task.

  Wizards can be used to create a new Unit, Form, Library, Form descendant, add a Menu Item to the Delphi menu system, or incorporate interesting new enhancements to the IDE.


Menu Wizards

 

Menu Wizard

  Menu Wizards are created the same way as Repository Wizards except for the interfaces that they must support. Menu Wizards place a menu item in the Help menu of the IDE. There is no choice as to where the Wizard is installed, this is the only place it may be installed. It is possible to inject a menu item in other menus but that requires a bit more work as you have to take advantange of the fact that the Delphi IDE is a Delphi application and you can access its main menu through the Application object.

  Creating a Menu Wizard consists of the following steps:

  • Creating the Repository Wizard Unit

  • Registering the Wizard with Delphi

  • Creating the Wizard Package (or adding the Wizard unit to an existing package)

  • Installing or Removing the Packages from the IDE

 

  Back to OpenTools API page.

 


mustangpeak.net

  Last Modified on: