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

Variable

Description

filename

Specifies the filename of the cursor file.

cursorid

Specifies the cursor id, taken from the following list:

 

Cursor ID

Style

Windows Name

 

32512 or 0

Arrow

OCR_NORMAL

 

32513 or 2

lbeam

OCR_IBEAM

 

32514 or 3

Wait

OCR_WAIT

 

32515 or 1

Crosshair

OCR_CROSS

 

32516

UpArrow

OCR_UP

 

32642

SizeNWSE

OCR_SIZENWSE

 

32643

SizeNESW

OCR_SIZENESW

 

32644

SizeWE

OCR_SIZEWE

 

32645

SizeNS

OCR_SIZENS

 

32646

SizeAll

OCR_SIZEALL

 

32648

No

OCR_NO

 

32649

Hand

OCR_HAND

 

32650

AppStarting

OCR_APPSTRING

 

32651

What's This?

OCR_WHATSTHIS

Return Value

None.

Remarks

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

BBjWindow

BBjControl::setCursor

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