Window.EditFocusChange Method (Typed) | |
Provide a method that is invoked when the input focus changes to or from an edit control.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD EditFocusChange(
oEditFocusChangeEvent AS EditFocusChangeEvent
) AS USUAL
public virtual Usual EditFocusChange(
EditFocusChangeEvent oEditFocusChangeEvent
)
Request Example
View SourceParameters
- oEditFocusChangeEvent
- Type: EditFocusChangeEvent
The EditFocusChangeEvent object that identifies which edit control generated the EditFocusChangeEvent object and whether it has just gained or lost the keyboard focus.
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.
|
If Window:EditFocusChange() is used to validate an edit control (and also return the focus to it if invalid), 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 none of the button controls are passed through this method, only SingleLineEdit and MultiLineEdit controls. If looking to control Combobox selections, then use the ListBoxSelect() callback method.
See Also