Interface MultiSourceEvent

Description

In BBj 7.00 and higher, a number of BBjEvent Objects can be generated from numerous controls. These BBjEvents implement the interface MultiSourceEvent. The interface allows a program to retrieve the source of the event cast to a specifed type.

Implementing Classes

BBjDragSourceDropEvent, BBjDropTargetDropEvent, BBjGainedFocusEvent, BBjLostFocusEvent, BBjMouseEnterEvent, BBjMouseExitEvent, BBjPopupRequestEvent, BBjRightMouseDownEvent

Methods of MultiSourceEvent

Return Value

Method

BBjBarChart

getBarChart()

BBjButton

getButton()

BBjCEdit

getCEdit()

BBjCheckBox

getCheckBox()

BBjChildWindow

getChildWindow()

BBjColorChooser

getColorChooser()

BBjDataAwareGrid getDataAwareGrid()
BBjDataBoundGrid getDataBoundGrid()

BBjEditBox

getEditBox()

BBjEditBoxSpinner

getEditBoxSpinner()

BBjFileChooser

getFileChooser()

BBjFontChooser

getFontChooser()

BBjGrid getGrid()

BBjGridHeader

getGridHeader()

BBjHtmlEdit getHtmlEdit()

BBjHtmlView

getHtmlView()

BBjImageCtrl

getImageCtrl()

BBjInputD

getInputD()

BBjInputDSpinner

getInputDSpinner()

BBjInputE

getInputE()

BBjInputESpinner

getInputESpinner()

BBjInputN

getInputN()

BBjInputNSpinner

getInputNSpinner()

BBjInputT getInputT()
BBjInputTSpinner getInputTSpinner()

BBjLineChart

getLineChart()

BBjListBox

getListBox()

BBjListButton

getListButton()

BBjListEdit

getListEdit()

BBjListSpinner

getListSpinner()

BBjMDI getMDIWindow()

BBjMenuButton

getMenuButton()

BBjNavigator

getNavigator()

BBjPieChart

getPieChart()

BBjPrintPreview

getPrintPreview()

BBjProgressBar

getProgressBar()

BBjRadioButton

getRadioButton()

BBjScrollBar

getScrollBar()

BBjSlider

getSlider()

BBjSplitter getSplitter()

BBjStandardGrid

getStandardGrid()

BBjStatusBar

getStatusBar()

BBjTabCtrl

getTabCtrl()

BBjToolButton

getToolButton()

BBjTopLevelWindow

getTopLevelWindow()

BBjTree

getTree()

BBjWindow getWindow()

Example

rem ' Interface MultiSourceEvent 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")
editbox! = window!.addEditBox(102,25,250,350,25,"BBjEditBox",$$)
editbox!.setCallback(BBjEditBox.ON_GAINED_FOCUS,"editbox")
button! = window!.addButton(103,25,300,350,25,"BBjButton",$$)
button!.setCallback(BBjButton.ON_GAINED_FOCUS,"button")
process_events

eoj:
release

cedit:
    event! = sysgui!.getLastEvent()
    control! = event!.getCEdit()
    print "BBjCEdit gained focus"
return

editbox:
    event! = sysgui!.getLastEvent()
    control! = event!.getEditBox()
    print "BBjEditBox gained focus"
return

button:
    event! = sysgui!.getLastEvent()
    control! = event!.getButton()
    print "BBjButton gained focus"
return

ClosedVersion History

See Also

BBjAPI

BBjSysGui

SysGuiEvent::getControl()