AgentrySetFocus

This method is called by the Agentry Client when the focus is set to the External Field - ActiveX Control detail screen field due to one of the following events:
  • Auto Focus: The parent screen has just been displayed, that screen’s Focus Field attribute is defined as Auto, and the External Field - ActiveX Control detail screen field is in the position to receive the focus.
  • Initial Focus: The parent screen has just been displayed and that screen’s Focus Field attribute is defined to set the focus explicitly to the External Field - ActiveX Control detail screen field.
  • Auto Change Focus: The previous detail screen field is defined to automatically change focus to the next field, the External Field - ActiveX Control field is the next field, and the user has just entered a value in the previous field.
  • OS Focus: The OS has sent a message that the External Field - ActiveX Control should receive the focus. This can occur when the user tabs to the field, selects the field’s hot key, and other similar situations.

The value of the type parameter to this method indicates which of the above is the reason for the External Field - ActiveX Control to have received the focus should it be necessary to perform different processing based on the focus event.

Parameters

Return Value

None