DADiSP Worksheet Functions > Function Categories > Annotation > LEGCUR
Invokes a free-roaming legend cursor in the current Window.
|
target, fg, bg, font, box, margin, focus) |
target |
- |
Optional. An integer specifying the spatial relationship of the legend to the Window:
|
||||||||||||||||||||||||
fg |
- |
Optional. An integer specifying the foreground color of the legend. Defaults to 1, the color of the primary series. |
||||||||||||||||||||||||
bg |
- |
Optional. An integer specifying the background color of the legend. Defaults to 1, the Window background color. |
||||||||||||||||||||||||
font |
- |
Optional. An integer specifying the font:
|
||||||||||||||||||||||||
box |
- |
Optional. An integer specifying presence or absence of a solid line box framing the legend. 1: ON; 0: OFF. Defaults to 1. |
||||||||||||||||||||||||
margin |
- |
Optional. An integer specifying the margin to be adjusted:
|
||||||||||||||||||||||||
focus |
- |
Optional. An integer specifying the focus for PAPER annotations. Defaults to 1, the primary focus. |
A legend associated with the various series in the Window.
legcur(1, 12, -1, 0, 0, -1, 1)
returns a legend in the current Window that does not scroll with the Worksheet, has light red text against a background the same color as the window, with small font, with the default margin style, and that has as focus the first series overlayed into the window.
See LEGEND to specify a legend programmatically.
LEGCUR derives the text it uses in the legend from the comments associated with each series in the window. Comments can be manipulated using the SETCOMMENT, GETCOMMENT, and COMMENT functions.
The colors available for the text and background are pre-defined in palette.mac. Refer to this file for numbers associated with your desired color selections.
Standard editing functions can be performed on a legend with the TEXTMOVE, TEXTEDIT, and TEXTDEL functions. These functions are easily accessed from the Drawing pull-down.