Component Writing : TGraphicControl with user (keyboard) input
Posted on 2003-03-04
I am writing a network monitoring screen logging component. Due to the speed of the output, I am using TGraphicControl as the main drawing Canvas in the component, which I've provided Line and Page updates for.
I have used the mouse button up msg to detect when and where the user has clicked on the screen. However, to provide a more professional finish, I really need to let the user navigate the captured data with the arrow keys.
I'm aware of the procedure necessary to grab the arrow keys :
PROCEDURE WMGetDlgCode (VAR MESSAGE : TWMGetDlgCode); MESSAGE WM_GetDlgCode;
But I think I need a method of adding/simulating key down events on this (or a sub/child) control, as TGraphicControl doesn't naturally own a window's handle from which to receive WM_KEYDOWN ?!?
Any ideas would be much appreciated.