chuckatkinson
21-Oct-2009, 09:33 AM
I'm trying to trap the enter key in the report control. I've tried using one or both of the following, but it doesn't seem to work for ENTER (keycode 13)
Procedure OnComKeyDown Short ByRef llKeyCode Short llShift
Variant vRow
Showln ("Key is " + (String(llKeyCode)) )
If (llKeyCode=13) Begin
Get ComFocusedRow to vRow
End
End_Procedure
Procedure OnComPreviewKeyDown Short ByRef llKeyCode Short llShift Boolean ByRef llCancel
Variant vRow
Showln ("Key is " + (String(llKeyCode)) )
If (llKeyCode=13) Begin
Get ComFocusedRow to vRow
End
End_Procedure
The above will trap almost anything except "Tab" and "Enter". Note: Disregard the ComFocusedRow stuff in the above code.
I want to allow the user to press "Enter" on a row to view some additional information.
Any ideas?
Procedure OnComKeyDown Short ByRef llKeyCode Short llShift
Variant vRow
Showln ("Key is " + (String(llKeyCode)) )
If (llKeyCode=13) Begin
Get ComFocusedRow to vRow
End
End_Procedure
Procedure OnComPreviewKeyDown Short ByRef llKeyCode Short llShift Boolean ByRef llCancel
Variant vRow
Showln ("Key is " + (String(llKeyCode)) )
If (llKeyCode=13) Begin
Get ComFocusedRow to vRow
End
End_Procedure
The above will trap almost anything except "Tab" and "Enter". Note: Disregard the ComFocusedRow stuff in the above code.
I want to allow the user to press "Enter" on a row to view some additional information.
Any ideas?