"cursor"

The attribute "cursor" specifies the cursor type.

Synopsis

setValue(string shape, "cursor", int c);

getValue(string shape, "cursor", int c);

shape.cursor(int c);

Parameter

Parameter Description
shape Name of the object
c

The cursor type (control constants):

CURSOR_UNSET The setting used for the widget is deleted and a meaningfull global setting is used.

CURSOR_ARROW

CURSOR_UP

CURSOR_CROSS

CURSOR_WAIT

CURSOR_IBEAM

CURSOR_SIZEVER

CURSOR_SIZEHOR

CURSOR_SIZEBDIAG

CURSOR_SIZEFDIAG

CURSOR_SIZEALL

CURSOR_BLANK

CURSOR_SPLITV

CURSOR_SPLITH

CURSOR_POINTINGHAND

CURSOR_FORBIDDEN

CURSOR_WHATSTHIS

CURSOR_BUSY

Description

The attribute "cursor" specifies the cursor type.

The cursor type can only be set for widgets (e.g. button, clock) but not for simple shapes (e.g. rectangle).

Example

In the following example, the cursor type is set to WHATSTHIS.

main()
{
  int cT;
  cT= CURSOR_WHATSTHIS;
  this.cursor(cT);
}

Assignment

All widgets