MathXplorerTM - MathViews
ActiveXControl -- Reference Info
Properties
- BOOL DebugInfo: Instruct MathViews to compile and execute in
adebug mode. In debug mode MathViews fires events to inform the user
interface(UI container) about the current file and line number. A
debugger UI can suspendexecuation to inspect the stack variables.
- BOOL OkToAbort: Instruct MathViews to enable Abort()
whileexecuting a lengthy computation.
- BOOL MultiThreaded: Instruct MathViews run computation in
aseparate thread.
Methods
- Abort(): Abort the execution of the currently running
script.
- AboutBox: Displays the About dialog box
- Evaluate(VARIANT Expression): Start execution of the
specified expression
- Expression: expression to execute. Must be a valid
MathViews expression.
- GetLastError(): Return the last error (VARIANT/BSTR text)
- IsVarNameOK(VARIANT VarName): Return TRUE is
validMathViews variable name (not implemented yet).
- SetOption(VARIANT Option, VARIANT Value):
Setcertain MathViews options.
- Option: MathViews option
- Value: Option value.
- GetValue(VARIANT VarName, VARIANT InfoType):
Getinformation about a MathViews variable.
- VarName: MathViews varname
- InfoType: requested information (leave blank to get all
variabledata).
- GetVarList(VARIANT ProcName): Get a list of all
MathViewsvariables for the specified procedure. (similar to MathViews
who and/or whoscommand).
- ProcName: MathViews procedure (leave blank for the main
workspace)
- SetReturnValue(VARIANT VarName, VARIANT VarValue):Return
a value to the MathViews computation engine.
- VarName: The event name - currently ignored.
- VarValue: The return value.
- SetValue(VARIANT VarName, VARIANT VarData):
Assigna value to MathViews variable. If the variable does not exist, new
variable isdefined.
- VarName: MathViews varname
- VarData: Variable Data (one dimensional or two
dimensional array).
- Note: the computational thread waits for return value to continue
computations.
Events
- AppDlg(VARIANT DialogType, VARIANT DialogTitle,VARIANT
Message, VARIANT ExParam): Fired when MathViews needs
tointeract with the user.
- DialogType: Dialog type. Currently the following types
aresupported: pause, input
- Dialog Title: Dialog title
- Message: User message
- ExParam: When a pause dialog is called, specify the
number ofseconds to wait
The user interface code should return, by calling
theSetReturnValue method, numeric return value (for yes/no dialog) or a
string return value (for input dialog, file/dir selection
dialog, menu dialog, etc.).
- AppError(VARIANT ErrMessage): When MathViews needs
toinform the user about an error.
- ErrMessage: error message
- AppPrint(VARIANT PrintCode, VARIANT Line):
WhenMathViews needs to print a line. An optional flag specifies if the
currentoutput need to be ereased.
- PrintCode: print flag
- 0: request clear of the output window (MathViews command
class)
- 1: Append to output window
- Line: message to print
- CalcDone(VARIANT CalcNesting): Called when
thecomputational thread completed it task.
- CalcNesting: nesting level.
- DebugInfo(VARIANT DebugFileName, VARIANT DebugLineNum,VARIANT
DebugExInfo): MathViews informs the user about the progress
ofm-file compilation.
- DebugFileName: Currently compiled script (NULL
if no changefrom last event)
- DebugLineNum: Line number
- DebugExInfo: Extra debug info
- DebugStep(VARIANT DebugFileName, VARIANT DebugLineNum,VARIANT
DebugExInfo): MathViews informs the user about the progress
ofm-file execution.
- DebugFileName: Currently executing script (NULL
if nochange from last event)
- DebugLineNum: Line number
- DebugExInfo: Extra step info
- GraphCallback(VARIANT GraphOption, VARIANT lParam):Fired
when MathViews needs to draw/create a graphic window.
- GraphOption: Graphic request type
- lParam: Graphic window number. Use this number to
alternate betweenseveral graphic windows.
The user
interface code must return, bycalling the SetReturnValue method, a
valid handle to a graphic window. If thehandle is not valid, the
MathViews control window will be used.
Note:Use the
MathViews Graphic Control to enable Copy to clipboard and
Printfeatures.
- ShowHelp(VARIANT Topic): Show the help topic
(MathViews isexecuting 'help pHelpTopic').
- UserEvent(VARIANT EventType, VARIANT EventParam):Called
by the computational thread (not implemented).
- CalcNesting: nesting level.
- VarChanged(VARIANT VarName): When AutoAssign is
active,MathViews inform the user that the variable has been changed.
- VarName: variable that changed
MathViews ActiveX Graph Control -- Reference Info
Properties:None
Methods
- Copy(): Copy the graph to the clipboard
- Print(VARIANT Option): Print the graph
- WriteAsMetafile(VARIANT Filename, VARIANT Option):Write
the graph into as Windows metafile
- Filename Output file name.
- Option Output option.
- GetGraphWnd(): Return the handle to the Graphic window (Can
be usedfor GraphCallback event)
Events:None
Tested with
Microsoft Internet Explorer 3.01