Interface MouseWheelEnabled::getScrollWheelBehavior


Description

In BBj 6.0 and higher, getScrollWheelBehavior returns a constant indicating under what situations the control will respond to the mouse scroll wheel.

Syntax

Return Value

Method

int

getScrollWheelBehavior()

Parameters

None.

Return Value

See MouseWheelEnabled for constants.

Example

SYSGUI=UNT; OPEN(SYSGUI)"X0"
sysgui! = BBjAPI().getSysGui()
win! = sysgui!.addWindow(10,10,160,160,"Scroll Wheel Test",$0000000B$)
win!.setCallback(win!.ON_CLOSE,"APP_CLOSE")

control! = win!.addListBox(101,10,10,60,100,"")
control!.setScrollWheelBehavior(control!.FOCUS)
PRINT "SCROLL MODE: ", control!.getScrollWheelBehavior()

over! = win!.addListBox(102,80,10,60,100,"")
over!.setScrollWheelBehavior(control!.MOUSE_THEN_FOCUS)

for x = 1 to 500
      control!.addItem(str(x)+": ...")
      over!.addItem(str(x)+": ...")
next x

PROCESS_EVENTS

APP_CLOSE:
release

See Also

BBjAPI

MouseWheelEnabled::setScrollWheelBehavior

BBjSysGui

BBjSysGui::setDefaultScrollWheelBehavior

BBjControl

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