BBjInputT::getPassEnter

Description

In BBj 24.00 and higher, this method returns whether the BBjInputT control passes the ENTER key to the top-level window.

Syntax

Return Value Method
boolean getPassEnter()

Parameters

None.

Return Value

Returns whether the ENTER key is passed to the top-level window.

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!.setCallback(inputt!.ON_INPUT_KEYPRESS,"keypress")

inputt!.focus()
print "getPassEnter: ",inputt!.getPassEnter()

inputt! = window!.addInputT(102,25,85,150,25,$0008$)
inputt!.setCallback(inputt!.ON_INPUT_KEYPRESS,"keypress")
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::getPassEnter added.

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

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