on 11-15-2006 1:32 PM
Hi!
We have to implement a function similar hot-key functionality using SDK-UI.
Nowadays we are using version 2004C and the problem is that et_Key_Down event fires only in form-context.
It means that there is no any key-press event if none form is active at the moment.
Even main-menu form (command center) isn't a 'form' in this case (we think the reason is in lack of any 'focus-receiving' control)
Is it possible to catch et_KEY_DOWN while command-center only is opened or no any form is opened?
Could anyone check the issue on 2005 (better, 2006 in case of SAP employee) version and/or suggest a solution (not using WinAPI) for it?
Kind regards,
Alexey
Hi Alexey!
We are using SAP Business One 2005A and
there exist an "et_Form_Key_Down" Event!
Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
If pVal.Before_Action = False Then
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_KEY_DOWN Then
Select Case pVal.CharPressed
Case "122"
SBO_Application.MessageBox("hello")
End Select
End If
End If
End Sub
I don't use Filters. so if you do so, you should look how to set them
greetz
Matthias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alexey,
We didnt succed on that, and from our experience its better to use the Win32API for that purpouse. But I suppose you already know that.
A couple links about it:
http://www.codeproject.com/system/KeyHook.asp?df=100&forumid=46493&exp=0&select=1343782
http://www.codeguru.com/vb/gen/vb_system/keyboard/article.php/c4829
Hope helps,
Ibai
User | Count |
---|---|
91 | |
10 | |
10 | |
6 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.