Macro Toolbar Display Wizard for Delphi 7

   
Release: 1.0
Date: 10 June 2007
Delphi Compatibility:
D1 D2 D3 D4 D5 D6 D7 D2005 D2006 D2007 D2009 D2010 DXE DXE2 DXE3 DXE4
Red LED Red LED Red LED Red LED Red LED Red LED Green LED Red LED Red LED Red LED Red LED Red LED Red LED Red LED Red LED Grey LED

Install Info

NOTE: This wizard will only work with Delphi 7. It will fail to compile / install on any other version of Delphi.

The wizard source files along with supporting documentation are supplied in a zip file. Before installing you need to extract all the files from the zip file. The following files will be extracted:

  • ChangeLog.txt – change log.
  • DDabMacroTBarDisplay.dpk – package file that can be used to install the wizard.
  • DDabMacroTBarDisplayWiz.pas – wizard source code.
  • MPL.txt – the Mozilla public license.
  • ReadMe.htm – this file.
  • VDDabMacroTBarDisplay.res – binary resource file containing version information for the package.
  • VDDabMacroTBarDisplay.vi – version information source for compilation using the DelphiDabbler Version Information Editor.

Emphasised files may be used in the installation, others are source or documentation files.

You can now proceed to install the wizard. There are two possible ways to do this:

  1. By compiling and installing the provided package.
  2. By adding the wizard source code to a pre-existing design package.

Installation using the provided package

  1. If necessary copy DDabMacroTBarDisplay.dpk, DDabMacroTBarDisplayWiz.pas and VDDabMacroTBarDisplay.res to the folder where you wish to keep them.
  2. Start Delphi and open DDabMacroTBarDisplay.dpk.
  3. Compile DDabMacroTBarDisplay.dpk. In the package window the Install button should now be enabled. Click this button to install the package. Dismiss the message that informs you that the package has been installed.
  4. Close the package window. Do not permit Delphi to save any changes.
  5. If the package has installed successfully you should see the macro recording toolbar in the editor window's status bar. If there is no editor window open, open a file in Delphi to display the window. In addition, a Display Macro Toolbar menu item should have appeared at the foot of the View menu.

To uninstall the wizard choose the Components | Install Packages menu option. In the resulting dialog box, scroll down the list of design packages until you find "DelphiDabbler Macro Toolbar Display Wizard". Select the package, click the Remove button and give permission to remove when prompted. Click OK. The macro toolbar will disappear from editor windows and the menu option will be removed. If you have configured any custom tool buttons to work with the wizard, they too will be removed.

Installation into a pre-existing package

If you don't want to install the provided package, you can add the wizard to an existing design package, possibly the "user" package named dclusr.dpk. This package can be found in $(DELPHI)\Lib, where $(DELPHI) represents the path where Delphi 7 is installed. Ensure that the package "requires" designide.pas, which is also found in $(DELPHI)\Lib.

  1. Decide upon a suitable location into which to install the wizard. This may be a subdirectory of your $(DELPHI)\lib folder.
  2. Copy DDabMacroTBarDisplayWiz.pas to the chosen installation folder. Note that this is the only file you need when installing into an existing package.
  3. Start Delphi then:
    • Choose the Component | Install Component menu option to display the Install Component dialog box. Ensure the Into existing package tab is selected. Enter the full path to DDabMacroTBarDisplayWiz.pas in the Unit file name edit box (use the adjacent Browse button to navigate to the file). Choose the required package from the Package description combo box, or by navigating to the package using Browse. Click OK to confirm your selections.
    • A confirmation dialog box may displayed, querying whether it is OK to rebuild and reinstall the package. Click Yes to proceed.
    • The package will now be built. If this succeeds the wizard will now be ready for use and editor windows will display the macro toolbar in the status bar. A Display Macro Toolbar menu item should have appeared at the foot of the View menu.
  4. If you wish you can now delete DDabMacroTBarDisplayWiz.pas from the chosen installation folder.

To remove the wizard, simply open the package into which you installed the wizard, remove DDabMacroTBarDisplayWiz.pas and recompile the package. The macro toolbar will disappear from editor windows and the wizard's menu item and any custom tool buttons you added will be removed. Close the package, accepting that changes should be saved.