MakeSymbol() function - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Purpose

Returns a Symbol value, using a character from the MapInfo 3.0 symbol set. The MapInfo 3.0 symbol set is the symbol set that was originally published with MapInfo for Windows 3.0 and has been maintained in subsequent versions of MapInfo Pro. You can call this function from the MapBasic window in MapInfo Pro.

Syntax

MakeSymbol( shape, color, size ) 

shape is a SmallInt value, 31 or larger (31 is invisible), specifying a symbol shape; standard symbol set provides symbols 31 through 67; see Symbol clause for a listing.

color is an integer RGB color value; see RGB() function for details.

size is a SmallInt value from 1 to 48, dictating the point size of the symbol.

Return Value

Symbol

Description

The MakeSymbol() function returns a Symbol value. The return value can be assigned to a Symbol variable, or may be used as a parameter within a statement that takes a Symbol clause as a parameter (such as Create Point statement, Set Map statement, Set Style statement, or Shade statement).

To create a symbol from a character in a TrueType font, call the MakeFontSymbol() function.

To create a symbol from a bitmap file, call the MakeCustomSymbol() function.

See Symbol clause for more information about Symbol settings.

Example

Include "mapbasic.def"
Dim sym_marker As Symbol
sym_marker = MakeSymbol(44, RED, 16)

See Also:

CurrentSymbol() function, MakeCustomSymbol() function, MakeFontSymbol() function, StyleAttr() function, Symbol clause