Capturing arrow up and down in CustomControl
Posted on 2002-06-20
I've got a component which is the descendant of TCustomContol. I need to capture when user presses cursor up and down keys if my component has the focus.
Currently, I override the KeyDown method of TCustomControl but it executes when user presses an alphanumerical character. If I press the up or down arrows the focus jumps to the previous or the next component. (Capturing WM_KEYDOWN message doesn't help, either.)
Any ide how to capture the cursor moving keys?