BBjInputT::setPassEnter

Description

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

Syntax

Return Value Method
void setPassEnter(boolean pass)

Parameters

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

Return Value

None.

Remarks

By default, the ENTER key is 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!.focus()
print "getPassEnter: ",inputt!.getPassEnter()
inputt! = window!.addInputT(102,25,85,150,25,$0008$)
inputt!.setPassEnter(1)
print "getPassEnter: ",inputt!.getPassEnter()
process_events

eoj:
release

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

ClosedVersion History

  • BBj 24.00: BBjInputT::setPassEnter added.

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

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