TmSetGraelMethod Procedure

Sets the name of the method procedure for a given method name and graphical element.

Usage

TmSetGraelMethod, tool_name, grael_name, method_name, method_value

Parameters

tool_name—A string containing the unique name of a VDA Tool.

grael_name—A string containing the name of the graphical element.

method_name—A string containing the name of the method to set for the specified graphical element (i.e., TM_DISPLAY).

value—A string containing the name of the method procedure (for example, ’DrawAxis’).

Keywords

user_data—A string containing data associated with the method.

Example

; Add a new graphical element called "CIRCLE" to a VDA Tool.
TmAddGrael, 'WzPlot_0', 'CIRCLE'
; Set method for new graphical element. This method calls
; DrawCircle, which draws circles in the plot window. 
TmSetGraelMethod, 'WzPlot_0', 'CIRCLE', 'TMDISPLAY', $
   'DrawCircle'

See Also

TmEnumerateGraelMethods, TmExecuteGraelMethod,
TmGetGraelMethod