BBjWindow::setCursor

Description

In BBj 3.01 and higher, this method sets the cursor style on the BBjWindow.

Syntax

Return Value

Method

void

setCursor(string filename)

int

setCursor(int cursorid)

Parameters

Parameter Description
cursor Specifies the cursor ID, taken from the following list:

Note:

Hover over the rows to preview each cursor style.

Cursor IDStyleWindow Name
32512 or 0ArrowOCR_NORMAL
32513 or 2IbeamOCR_IBEAM
32514 or 3WaitOCR_WAIT
32515 or 1CrosshairOCR_CROSSHAIR
32516Up ArrowOCR_UPARROW
32642Size NWSEOCR_SIZENWSE
32643Size NESWOCR_SIZENESW
32644Size WEOCR_SIZEWE
32645Size NSOCR_SIZENS
32646Size AllOCR_SIZEALL
32648NoOCR_NO
32649HandOCR_HAND
32650App StartingOCR_APPSTARTING
32651What's This?OCR_WHATSTHIS

Return Value

None.

Example

rem 'Create a Window

rem 'Obtain the instance of the BBjAPI object
let myAPI! = BBjAPI()

rem 'Open the SysGui device
SYSGUI = UNT
OPEN (SYSGUI) "X0"

rem 'Obtain the instance of the BBjSysGui object
let mySysGui! = myAPI!.getSysGui()

rem 'Set common addWindow param values
X = 10
Y = 10
WIDTH = 200
HEIGHT = 200

rem 'Create a window with a title in the current context
TITLE$="BBj Window"

rem 'Set the current context
mySysGui!.setContext(0)
myWindow! = mySysGui!.addWindow(X,Y,WIDTH,HEIGHT,TITLE$)
myWindow!.setCursor(3)

rem 'Register the CALLBACK routines
CALLBACK(ON_CLOSE,APP_CLOSE,mySysGui!.getContext())

rem 'Process Events
process_events

rem 'Callback routine called when the user closes the application window
APP_CLOSE:
release

See Also

BBjAPI

BBjSysGui

BBjControl

BBjControl::setCursor

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.