DataWindow.ControlFocusChange Method (Typed) | |
Provide a method that is invoked when the input focus changes to or from a control.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD ControlFocusChange(
oControlFocusChangeEvent AS ControlFocusChangeEvent
) AS USUAL
public override Usual ControlFocusChange(
ControlFocusChangeEvent oControlFocusChangeEvent
)
Request Example
View SourceParameters
- oControlFocusChangeEvent
- Type: ControlFocusChangeEvent
The ControlFocusChangeEvent object that identifies which control generated the ControlFocusChangeEvent object and whether it has just gained or lost the keyboard focus.
Return Value
Type:
UsualImplements
ControlFocusChange(ControlFocusChangeEvent)Remarks
If ControlFocusChange() is used to validate a control (and also set the focus to another control),
Control:SetFocus() should not be called until another control has received the focus.
In complex dialog windows that contain many edit controls, it makes sense to grab the edit
control's text when the focus is changing so that other controls can be updated with it if necessary.
See the ButtonClick() method for an example of similar syntax to be used in this method.
Note that all controls are passed through this method, not only SingleLineEdit and MultiLineEdit controls.
If looking to control Combobox selections, then the ListBoxSelect() callback method should be reviewed.
See Also