Skip to Content
0
Former Member
Feb 09, 2004 at 03:43 PM

UI: Control & Key pressed?

722 Views

Hi all,

is there a way to catch an event where two keys are pressed in the cell of a matrix?

i.e.: user presses for find mode).

Is this possible at all?

TIA Lutz Morrien

Here is sample code catching the return key in VB .Net (taken from item event handler):

If pVal.Before_Action = True Then

Select Case pVal.EventType

Case SAPbouiCOM.BoEventTypes.et_KEY_DOWN

Select Case pVal.ItemUID

Case "38" 'Matrix

Select Case pVal.ColUID

Case "1" 'column ItemCode

Select Case pVal.CharPressed

Case 13

'prevent SBO action

BubbleEvent = False

SBO_Application.Messagebox("return key pressed")

End Select

End Select

End Select

End Select

Else

'****************************

' EVENT HANDLING AFTER ACTION

'****************************

End If