VCL.XPAppWiz Sample

From RAD Studio Code Examples
Jump to: navigation, search

Language:

This sample shows how to create a Windows XP Application Wizard.

Contents

Location

You can find the XPAppWiz sample project at:

Description

This wizard enables you to create projects that will participate in the new XP Themes look. It creates a manifest file for your project and adds it to the executable as a resource.

How to Use the Sample

  1. Navigate to Start > Programs > Embarcadero RAD Studio > Samples and open XPAppWiz.dproj.
  2. Build XPAppWiz.bpl.
  3. Install XPAppWiz.bpl.

Files

XPAppExpt contains all the classes needed to create the project wizard.

Classes

  • TXPAppProjectCreator is the creator class for the XP Themed Application.
  • TXPAppModuleCreator is the creator class for a form file.
  • TXPAppProjectWizard is the class that adds the new item XP Themed Application to the File > New > Other collection.
  • TXPProjectSource handles the source file of the project.
  • TXPModuleSource handles the source file of a form.

Implementation

  • TXPAppProjectCreator.GetCreatorType sets the project type as a default application.
  • TXPAppProjectWizard.GetGalleryCategory returns the category where the new application type will appear
  • TXPAppProjectWizard.GetPersonality sets that the project is a Delphi project.
  • Global Register procedure installs the new project wizard.
  • InitModuleResources initializes the source files to the template defined in XPAPPCODE.txt.

Uses

See Also

Personal tools