cancel
Showing results for 
Search instead for 
Did you mean: 

UDF Form et_KEY_DOWN event.

Former Member
0 Kudos

Hi all,

Has anyone had problems with the above event? I cannot seem to trap it on a UDF form, it works fine on a standard form. Using SBO 6.5 SP1 P7. For example:

- This code works fine.

*******************************************

Set oFilter = oFilters.Add(et_CLICK)

oFilter.Add -139 'Sales Order UDF form.

......

If pVal.FormType = -139 And pVal.EventType = et_CLICK Then

oApp.MessageBox "hello"

End If

*******************************************

- This doesn't work.

*******************************************

Set oFilter = oFilters.Add(et_KEY_DOWN)

oFilter.Add -139 'Sales Order UDF form.

......

If pVal.FormType = -139 And pVal.EventType = et_KEY_DOWN Then

oApp.MessageBox "hello"

End If

*******************************************

Any suggestions?

Regards,

Andrew.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I have tried to trap events on this form as well, and was unable to. The solution I came up with was to add items to the system form which contain the user fields, and then could trap the events on the user fields.

Former Member
0 Kudos

Thanks for your reply Corbin.

Andrew.

Former Member
0 Kudos

Hi,

SBO catches the KEY_DOWN event only if one of controls of the form has focus

Regards,

Mark

Message was edited by: Mark Gulyansky