Pitney Bowes MapXtreme User Manual

Page 127

Advertising
background image

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

MapInfo.Windows.Controls Namespace

MapXtreme v7.1

127

Developer Guide

However, the controls in each namespace cannot be substituted for each other. The controls in this
namespace are specifically to be used in desktop applications. For information about controls for
web-based applications, see

Chapter 5: Web Applications, Controls, and Tools

.

L

Some controls do not display at design time. When dragged and dropped onto a form they
merely appear as a rectangle. These controls display properly at run time.

The desktop controls included with MapXtreme can be categorized into standard controls and
map-specific controls. Standard controls include buttons, view tools, label tools, all kinds of boxes,
etc. These are quite similar to (and in many cases, inherited from) classes that exist within the
System.Windows.Forms namespace.

The map-specific controls are specific to Pitney Bowes Software’s mapping implementations. These
include controls that set or modify aspects of object styles, labels, layers, coordinate systems,
themes, and other related functions.

Visual Studio Toolbox and Designer showing the list of available MapXtreme controls.

The most complex of the controls is the Layer Control, which is available as either a modal Dialog
Box, or as a control that you can display directly on your form. The Layer Control has an API that
allows extensive customization; see the “LayerControlDemo” sample application for examples.

Advertising