User Tools

Site Tools


cursor_set_mouse_cursor_type_.htm
Navigation:  Language Reference > 9 -  Window and Report Attributes > Window and Report Attributes >====== CURSOR (set mouse cursor type) ====== Previous pageReturn to chapter overviewNext page

NewC7.jpg

CURSOR(file)

blk2blue.jpg

CURSOR Specifies a mouse cursor to display.
file A string constant containing the name of a .CUR file, or an EQUATE naming a Windows-standard mouse cursor. The .CUR file is linked into the .EXE as a resource.

The CURSOR attribute (PROP:CURSOR) specifies a mouse cursor to be displayed when the mouse is positioned over the APPLICATION, WINDOW, TOOLBAR, or control. This cursor is inherited by the controls in the APPLICATION, WINDOW, or TOOLBAR unless overridden.

EQUATE statements for the Windows-standard mouse cursors are contained in the EQUATES.CLW file. The following list is a representative sample of these (see EQUATES.CLW for the complete list):

CURSOR:None No mouse cursor
CURSOR:Arrow Normal windows arrow cursor
CURSOR:IBeam Capital “I” like a steel I-beam
CURSOR:Wait Hourglass
CURSOR:Cross Large plus sign
CURSOR:UpArrow Vertical arrow
CURSOR:Size Four-headed arrow
CURSOR:Icon Box within a box
CURSOR:SizeNWSE Double-headed arrow slanting left
CURSOR:SizeNESW Double-headed arrow slanting right
CURSOR:SizeWE Double-headed horizontal arrow
CURSOR:SizeNS Double-headed vertical arrow
CURSOR:DragWE Double-headed horizontal arrow

Example:

!Window with custom cursor

WinTwo WINDOW,CURSOR('CUSTOM.CUR')

       TOOLBAR,CURSOR('CURSOR:Cross')              !Toolbar with large plus sign cursor

        BUTTON('Cut'),USE(?CutButton),STD(STD:Cut)

        BUTTON('Copy'),USE(?CopyButton),STD(STD:Copy)

        BUTTON('Paste'),USE(?PasteButton),STD(STD:Paste)

       END

       REGION,AT(20,20,20,20),CURSOR(CURSOR:IBeam) !Region with I-beam cursor

       REGION,AT(100,100,20,20)

      END

cursor_set_mouse_cursor_type_.htm.txt · Last modified: 2021/04/15 15:57 (external edit)