GRAPH.Legend

Previous  Next

 

state = GRAPH.Legend( BYVAL nControl AS INTEGER 

                     [BYVAL state    AS INTEGER=NULL] ) AS INTEGER

 


 

Shows or hides the legend and returns the state of the legend.  If the state parameter is omitted then the current legend state is returned.

 

Note; Current version only supports legend in upper left corner of plot area.

 

The following CONSTs are defined in MyBASIC2_GRAPH.BIS

 

NG_None      = 0    No Legend

NG_Right     = 1    Legend to the right

NG_Bottom    = 2    Legend on the bottom

 

Example:

 

nNewLegendState = GRAPH.Legend( nControl, NG_Right )