Default cursor - %dc[cursor_name]

By default, winio@ supplies an arrow for the mouse cursor. The %dc (Default Cursor) format takes a standard character string giving the name of the cursor resource or, if a grave accent format modifier is used, it takes an argument that is one of the following constants representing built-in Windows cursors:

CURSOR_ARROW

Standard arrow cursor

CURSOR_IBEAM

Text I-beam cursor

CURSOR_WAIT

Hourglass cursor

CURSOR_CROSS

Cross hair cursor

CURSOR_UPARROW

Vertical arrow cursor

CURSOR_SIZE

A square with a smaller square inside its lower-right corner

CURSOR_ICON

Empty icon

CURSOR_SIZENWSE

Double-pointed cursor with arrows pointing Northwest and Southeast

CURSOR_SIZENESW

Double-pointed cursor with arrows pointing Northeast and Southwest

CURSOR_SIZEWE

Double-pointed cursor with arrows pointing west and east

CURSOR_SIZENS

Double-pointed cursor with arrows pointing North and South


For example:

i=winio@('%`dc',CURSOR_IBEAM)

whilst for a user defined cursor:

i=winio@('%dc[my_cursor]')

combined with a resource script that contains the line:

my_cursor CURSOR cursor.cur

The file cursor.cur is created using an image editor.

See the description of %cu (Cursor) (Cursor) for a further example of how %dc (Default Cursor) is used and how several different cursors can be used for different parts of the format window.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited