Createthemewizard – Pitney Bowes MapXtreme User Manual

Page 135

Advertising
background image

Chapter 7: Desktop Applications, Controls, Dialogs, and Tools

MapInfo.Windows.Dialogs Namespace

MapXtreme v7.1

135

Developer Guide

Stock Dialogs

MapXtreme ships with many stock dialogs and controls to handle tasks of manipulating the
MapXtreme objects. All the dialogs and controls used in Workspace Manager are available for use in
your application. The dialogs are simply containers for the low level controls. These controls are
designed to work specifically with many of the MapXtreme objects.

The controls that ship with MapXtreme are used by the stock dialogs to create the basic UI
components. The controls are placed in dialogs to create specific UI components. You can, in the
same way, use the base controls to design your own dialogs. Simply create a dialog class and start
dragging the controls onto the surface to create your dialog.

The stock dialogs also can be customized through visual inheritance. You can derive a class from
our dialogs and customize some of the behaviors by overriding methods and properties. Other
dialogs such as the Layer Control are customizable, so you can change the default behavior to hide
controls you don't want users to access, change the look of the icons, or remove tabs.

Basically you have control over all the UI components that ship with MapXtreme. This allows you to
create your own custom interface. Using any of the methods described allows you to create a
customized desktop application that exposes only what you need rather than everything MapXtreme
defines.

CreateThemeWizard

The CreateThemeWizard class is a convenience class that you can add to your application. This
class is used to guide the user through the process of creating a new theme by launching a wizard (a
set of dialog boxes). There are three basic steps to creating a theme: 1) Select the theme type; 2)
Select the table and columns to use for the theme; and 3) Modify the theme attributes (style, number
of ranges, etc.). The wizard ties all these settings together into a sequence of dialog boxes to make
theme creation as simple as possible for the end users of MapXtreme applications.

Using the CreateThemeWizard

The CreateThemeWizard displays several different dialog boxes, depending on the choices made
by the user. The first dialog box allows you to select a theme type.

Create Theme: Step 1 of 3 dialog box

Advertising