
Chapter 15: Stylizing Your Maps
Using Styles
MapXtreme v7.1 300 Developer Guide
Using Styles
Styles and Layer Control
Use LayerControl at design or runtime to modify and override styles. See the sample application
LayerControl for an introduction to the MapInfo.Windows.Controls.LayerControl object model. This
code sample uses a LayerControl object directly on a form; it does not demonstrate using the
LayerControlDlg dialog box, which is a related, but separate class. Every operation demonstrated in
this code sample could be applied to a LayerControlDlg object, as well, since the LayerControlDlg
class exposes a LayerControl property.
LayerControl is discussed in Chapter 7: Desktop Applications, Controls, Dialogs, and Tools and
in Chapter 23: Workspace Manager.
Creating a Custom Bitmap Style
You can create bitmap images in any application that can create bitmaps, like MS Paint or Paint
Shop Pro. There are virtually no size limitations on the image; however, the ability of MapXtreme to
display it will depend on available memory. The image does not have to be square and can also
have up to 24-bit color depth. To make sure the image is displayed at the height and width you want,
select the 'Display at actual size option' for BitmapPointStyles. Once the image is created, place it in
the CustSymb directory.
Komentáře k této Příručce