Interface MultiSourceEvent ::getInputTSpinner

Description

In BBj 23.02 and higher, this method calls SysGuiEvent::getControl() and casts the return value to a BBjInputTSpinner.

Syntax

Return Value Method
BBjInputTSpinner getInputTSpinner()

Parameters

None.

Return Value

Returns the BBjInputTSpinner that is the source of the event.

Remarks

If the source of the event is not a BBjInputT, then this method will throw an !ERROR=26.

Example

rem ' MultiSourceEvent
sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(25,25,400,400,"MultiSourceEvent",$00090083$)
window!.setCallback(BBjWindow.ON_CLOSE,"eoj")
cedit! = window!.addCEdit(101,25,25,350,200,"BBjCEdit",$8106$)
cedit!.setCallback(BBjCEdit.ON_GAINED_FOCUS,"cedit")
inputt! = window!.addInputT(102,25,250,350,25,$0008$,"%hz:%mz:%sz %a")
inputt!.setPlaceholder(inputt!.getMask())
inputt!.setCallback(BBjInputT.ON_GAINED_FOCUS,"inputt")
inputtSpin! = window!.addInputTSpinner(103,25,300,350,25,$$,"%hz:%mz:%sz %a","",16,15)
inputtSpin!.setCallback(BBjInputTSpinner.ON_GAINED_FOCUS,"inputtSpin")
process_events
eoj:
  release
cedit:
  event! = sysgui!.getLastEvent()
  control! = event!.getCEdit()
  print "BBjCEdit gained focus"
return
inputt:
  event! = sysgui!.getLastEvent()
  control! = event!.getInputT()
  print "BBjInputT gained focus"
return
inputtSpin:
  event! = sysgui!.getLastEvent()
  control! = event!.getInputTSpinner()
  print "BBjInputTSpinner gained focus"
return

ClosedVersion History

  • BBj 23.02: MultiSourceEvent::getInputTSpinner added.

See Also

BBjAPI

BBjSysGuiEvent::getControl

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