Click or drag to resize

Cursor Class

X#
Create a text cursor, which is used to visually represent the position in a window where the next piece of text appears.
Inheritance Hierarchy
Object
  VObject
    Cursor

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.21
Syntax
 CLASS Cursor INHERIT VObject
Request Example View Source

The Cursor type exposes the following members.

Constructors
  NameDescription
Public methodCursor
Construct a cursor.
Top
Properties
  NameDescription
Public propertyPosition
A point—in owner window canvas coordinates—representing the current position of the cursor.
Top
Methods
  NameDescription
Public methodDestroy
Provide a method to de-instantiate a Cursor object.
(Overrides Destroy.)
Public methodHandle
Return the handle for a cursor.
Public methodHide
Hide a cursor so it is not visible (until a subsequent call to Cursor:Show()).
Public methodShow
Display a cursor so it is visible.
Top
Fields
  NameDescription
Public fieldoCargo
Cargo slot.
(Inherited from VObject.)
Top
Remarks
The default cursor is an I-beam, although you can also create cursors using bitmaps. Note that a window can have only one cursor at a time. The system automatically manages the cursor between windows.
Tip Tip
Not applicable for DialogWindows or DataWindows. Tip: In X#, the Cursor class corresponds to a text cursor; use class Pointer to create mouse cursors.
Examples
This example creates a cursor during a focus change:
X#
1METHOD FocusChange(oEvent) CLASS MyWindow
2IF oEvent:GotFocus
3oCursorText := Cursor{SELF,Dimension{20,20}}
4oCursorText:Position := Point{40,40}
5oCursorText:Show()
6...
7ENDIF
See Also

Reference