Using Shape Color Values in MapPoint
Microsoft Corporation
July 2004
Applies to:
Microsoft MapPoint 2002
Microsoft MapPoint 2004
Summary: Learn how to add fill color, line color, and text color to shapes that you create in MapPoint. (2 printed pages)
Contents
Introduction
When you create shapes in Microsoft MapPoint (such as rectangles, ovals, and text boxes), you can add fill color, line color, and text color to them. If you set the color using a Microsoft Visual Basic color constant, MapPoint matches it to the closest color available in the MapPoint color list. For example, the color &H808001 is matched to &H808000. This article provides a list of color constants and their associated RGB hexadecimal values so that you can easily add MapPoint-specific color values to the shapes you create.
Color Constants
To create MapPoint color constants, insert the following code into a Visual Basic module, name it MapPointColors.bas, and change the Name property of the module to MapPointColors.
Public Const mpBlack As Long = &H1& Public Const mpBrown As Long = &H3399& Public Const mpOliveGreen As Long = &H3333& Public Const mpDarkGreen As Long = &H3300& Public Const mpDarkTeal As Long = &H663300 Public Const mpDarkBlue As Long = &H800000 Public Const mpIndigo As Long = &H993333 Public Const mpGray80 As Long = &H333333 Public Const mpDarkRed As Long = &H80& Public Const mpOrange As Long = &H66FF& Public Const mpDarkYellow As Long = &H8080& Public Const mpGreen As Long = &H8000& Public Const mpTeal As Long = &H808000 Public Const mpBlue As Long = &HFF0000 Public Const mpBlueGray As Long = &H996666 Public Const mpGray50 As Long = &H808080 Public Const mpRed As Long = &HFF& Public Const mpLightOrange As Long = &H99FF& Public Const mpLime As Long = &HCC99& Public Const mpSeaGreen As Long = &H669933 Public Const mpAqua As Long = &HCCCC33 Public Const mpLightBlue As Long = &HFF6633 Public Const mpViolet As Long = &H800080 Public Const mpGray40 As Long = &H969696 Public Const mpPink As Long = &HFF00FF Public Const mpGold As Long = &HCCFF& Public Const mpYellow As Long = &HFFFF& Public Const mpBrightGreen As Long = &HFF00& Public Const mpTurquoise As Long = &HFFFF00 Public Const mpSkyBlue As Long = &HFFCC00 Public Const mpPlum As Long = &H663399 Public Const mpGray25 As Long = &HC0C0C0 Public Const mpRose As Long = &HCC99FF Public Const mpTan As Long = &H99CCFF Public Const mpLightYellow As Long = &H99FFFF Public Const mpLightGreen As Long = &HCCFFCC Public Const mpLightTurquoise As Long = &HFFFFCC Public Const mpPaleBlue As Long = &HFFCC99 Public Const mpLavender As Long = &HFF99CC Public Const mpWhite As Long = &HFFFFFE