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.