scriptReadWrite"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 arrowCursor

CURSOR_UP UpCursor

CURSOR_CROSS crossCursor

CURSOR_WAIT waitCursor

CURSOR_IBEAM ibeamCursor

CURSOR_SIZEVER sizeverCursor

CURSOR_SIZEHOR sizeHorCursor

CURSOR_SIZEBDIAG sizeBDiagCursor

CURSOR_SIZEFDIAG sizeFDiagCursor

CURSOR_SIZEALL sizeAllCursor

CURSOR_BLANK blankCursor

CURSOR_SPLITV splitvCursor

CURSOR_SPLITH splitHCursor

CURSOR_POINTINGHAND pointHandCursor

CURSOR_FORBIDDEN forbiddCursor

CURSOR_WHATSTHIS whatsThisCursor

CURSOR_BUSY busyCursor

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).

exampleExample

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

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

Assignment

All widgets