Click or drag to resize

Window.ListBoxSelect Method

X#
Provide a method that is invoked when an item in a list box owned by this window is clicked.

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.21
Syntax
 VIRTUAL METHOD ListBoxSelect(
	oControlEvent
) AS USUAL CLIPPER
Request Example View Source

Parameters

oControlEvent (Optional)
Type: Usual
The ControlEvent object that describes which list box contained the item that was clicked.

Return Value

Type: Usual
This method calls Window.Default() and returns the result of Window.Default()
Remarks
Tip Tip
Important! This is a callback method used by X#. Normally, it should not be called in your application code.
Examples
Typical example below of using this method:
X#
 1METHOD ListBoxSelect(oControlEvent) CLASS TeamInfo
 2LOCAL oControl AS Control
 3LOCAL sSym AS SYMBOL
 4oControl := IIf(oControlEvent == NULL_OBJECT, NULL_OBJECT, ;
 5oControlEvent:Control)
 6SUPER:ListBoxSelect(oControlEvent)
 7//Put your changes here
 8sSym  := oControl:nameSym
 9IF sSym == #cbxTeamNumbers
10IF SELF:cLastTeamNr != SELF:oDCcbxTeamNumbers:Value
11SELF:cLastTeamNr := SELF:oDCcbxTeamNumbers:Value
12SELF:BreakDownTeamNumber( SELF:oDCcbxTeamNumbers:Value )
13ENDIF
14ENDIF
See Also