CURSOR (set mouse cursor type)

Top  Previous  Next

 

CURSOR(file)

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