BBjInputT::setPassTab

Description

In BBj 24.00 and higher, this method sets whether the BBjInputT control is to pass the TAB key notification to the top-level window.

Syntax

Return Value Method
void setPassTab(boolean pass)

Parameters

Parameter Description
pass Specifies whether to pass the TAB key to the top-level window.

Return Value

None.

Remarks

By default, the TAB key is also reported as BBjInputKeypressEvent on the BBjInputT.

Example

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(50,50,200,150,"BBjInputT",$00090083$)
window!.setCallback(window!.ON_CLOSE,"eoj")
window!.setCallback(window!.ON_KEYPRESS,"keypress")
inputt! = window!.addInputT(101,25,25,150,25,$0008$)
inputt!.setCallback(inputt!.ON_INPUT_KEYPRESS,"keypress")
inputt!.focus()
print "getPassTab: ",inputt!.getPassTab()
inputt! = window!.addInputT(102,25,85,150,25,$0008$)
inputt!.setCallback(inputt!.ON_INPUT_KEYPRESS,"keypress")
inputt!.setPassTab(1)
print "getPassTab: ",inputt!.getPassTab()
process_events

eoj:
release

keypress:
    event! = sysgui!.getLastEvent()
    print event!.getEventName(),event!.getKeyCode()
return

ClosedVersion History

  • BBj 24.00: BBjInputT::setPassTab added.

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

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