Click or drag to resize

Pointer Class (Typed)

X#
Create a mouse cursor, which is used to visually represent the mouse in a window.
Inheritance Hierarchy
Object
  VObject
    Pointer

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax
 CLASS Pointer INHERIT VObject
Request Example View Source

The Pointer type exposes the following members.

Constructors
  NameDescription
Public methodPointer
Load a pointer from a resource entity.
Top
Properties
  NameDescription
Public propertyPosition
A point representing the position of this pointer on the window, in screen coordinates.
Top
Functions
  NameDescription
Public methodDestroy
Free memory resources allocated for a VObject object and its derived objects.
(Inherited from VObject.)
Public methodHandle
Return the handle for a pointer.
Public methodHide
Hide this pointer so it is not visible. Hide a control so it is not visible (until a subsequent call to Pointer:Show()).
Public methodShow
Display a pointer so it is visible.
Top
Operators
Globals and Defines
  NameDescription
Public fieldoCargo
Cargo slot.
(Inherited from VObject.)
Top
Remarks
X# provides a set of predefined pointers, defined in Pointer:Init(). In addition, if desired, you can also create pointers from resource entities. Each window can have its own pointer, and various pointer characteristics can be set, changed, or interrogated. As the pointer moves from the canvas area of one window to another, the GUI changes the pointer representation to that of the new window. Tip: In X#, the class Pointer corresponds to a mouse cursor; use class Cursor to create text cursors.
Examples
The following example provides an application window with a custom cursor:
X#
1CLASS MyTopAppWin INHERIT TopAppWindow
2METHOD Init CLASS MyTopAppWin
3SUPER:Init()
4SELF:Pointer := Pointer{IDC_APPCURSOR}
5RESOURCE IDC_APPCURSOR CURSOR app.cur
In Windows, pointers are sometimes called cursors. You can create a pointer in a resource entity.
See Also