Object: Cursor
- Updated2024-09-12
- 2 minute(s) read
(CoordinateWnd | Sheet) > Object: Cursor
Object: Cursor
The Cursor object provides a cursor in DIAdem VIEW. You use the Cursor object to specify the cursor position, the cursor type, and the cursor mode. You can set the Cursor object separately for each worksheet.
The following example positions a frame cursor and displays the width of the frame:
| VBScript | Python |
Dim oMySheet, oMyChart Call Data.Root.Clear() Call DataFileLoad("Example.tdm") Call View.Sheets.RemoveAll() Call View.NewLayout() Set oMySheet = View.ActiveSheet oMySheet.ActiveArea.DisplayObjType = "CurveChart2D" Set oMyChart = oMySheet.ActiveArea.DisplayObj Call oMyChart.Curves2D.Add("[1]/[1]","[1]/[2]") oMySheet.Cursor.Type = "Frame" oMySheet.Cursor.X1 = 10 oMySheet.Cursor.Y1 = 20 oMySheet.Cursor.X2 = 30 oMySheet.Cursor.Y2 = 40 Call LogFileWrite("Dx position: " & View.ActiveSheet.Cursor.Dx & vbCrLf & "Dy position: " & View.ActiveSheet.Cursor.Dy)
Properties
ActiveCursorColorRGB | ConstantDeltas | CursorWidth | Dimensions | DX | DY | EndPos | HotspotColorRGB | InactiveCursorColorRGB | Interpolating | Mode | P1 | P2 | Sheet | Speed | StartPos | SubCursor | Type | X1 | X2 | XRangeMode | Y1 | Y2
Methods
Backwards | Forwards | GotoEnd | GotoStart | IsPlaying | Play | Replay | StepBackwards | StepForwards | Stop
Returned From
See Also
Examples
Analyzing and Displaying Channels Section by Section | Automatic Display of Harmonic Frequencies | Background Segments in DIAdem VIEW | Calculating a Tangent to a Curve | Creating and Viewing Long Data Channels | Dynamic Display of Statistical Characteristic Values in DIAdem VIEW | Overlaying Objects in Videos | User Dialog Box in VIEW for the Calculation of the FFT and Harmonic Frequencies | Vibration Data Analysis with Parallel Processing | Viewing and Automatically Analyzing Data