Window.ListBoxSelect Method (Typed) | |
Provide a method that is invoked when an item in a list box owned by this window is clicked.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD ListBoxSelect(
oControlEvent AS ControlEvent
) AS USUAL
public virtual Usual ListBoxSelect(
ControlEvent oControlEvent
)
Request Example
View SourceParameters
- oControlEvent
- Type: ControlEvent
The ControlEvent object that describes which list box contained the item that was clicked.
Return Value
Type:
UsualThis method calls Window.Default() and returns the result of Window.Default()
Remarks 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:
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
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