The features described in this topic are obsolete
and should not be used in new IDL code.
Sharing a Grid Control Array with IDL
VBShare1D demonstrates sharing one dimensional data between Visual Basic and IDL using the SetNamedArray method of the IDLDrawWidget object. The data is presented to the user in a Visual Basic grid control enabling the user to edit the data and see the results in real time. See the following figure.
This example illustrates the following concepts:
- Shows how to process mouse events within VB to get the data coordinates of an IDL plot.
- Demonstrates how to convert (x,y) VB coordinates into IDL data coordinates, to give the cursor location in data values relative to the current plot.
- Demonstrates how to use a VB grid control to edit data values that are reflected in the IDL plot after each keystroke
.
Example Code
See the files located in the examples\docs\ActiveX\VBShare1D directory of the IDL installation directory for example code.
