Link Search Menu Expand Document

FocusOperationEvent.Direction property

The following values ​​are stored to indicate in which direction the focus was moved.

Constant Value Description
$ NEXTFOCUS 1 Next object
$ PREVFOCUS 2 Previous object

By passing the value of the Direction property to the MoveFocus method of the FocusObject class, you can move the focus in the same way as the original focus movement.

Example

Function OnFocusOperation (e) {
    if (Value == "") {
        BgColor = $ RED;
        MessageBox (" Enter ");
        return;
    }
    BgColor = $ STD;
    MoveFocus (e.Direction);
}