Chapter Contents |
Previous |
Next |
Map: _setFontList |
Syntax | |
Details | |
Example |
Syntax |
CALL NOTIFY (map-name, '_setFontList', element, font-list-id); |
Argument | Type | Description | |
---|---|---|---|
element |
C | specifies the text element to be assigned the font: | |
'LABEL' | marker or map area labels | ||
'LEGEND' | legend labels | ||
font-list-id |
N | specifies the identifier of an SCL list created by the FONTSEL function and containing font information |
Details |
You can obtain a font list identifier by using the FONTSEL function to open a font selector from which the user selects font characteristics that are stored in a font list.
Example |
This example uses the FONTSEL function to open the font selector window from which the user selects a font that is stored in MYLIST. This font is then assigned to the legend text.
/* Create the list in which to store font information */ fontlist = makelist(); /* Open the default font selector. User selection is stored in MYFONT */ myfont = fontsel(fontlist, ' '); /* Assign the font stored in MYFONT to the legend labels */ */ call notify('map1','_set_font_list_', 'legend',myfont); /* Delete the list */ dellist(fontlist);
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.