Well the program (which I am converting from PBCC) edits large blocks of nucleotide sequence data, often several thousand bases ling, windowed using the scrollbar. This can only be feasibly represented in a graphics screen onto which is placed a cursor that is required for editing, moving sequences etc. There are menus etc. but most of the activity associated with the program is editing the sequences themselves.
As for the possibility of using a text editor box (with built in keyboard support), the actual editing and display of sequences goes far beyond its capabilities. I therefore have to create the editing environment from the ground up, and that includes getting keyboard input. Left, right, up and down arrows for moving the cursor, ALT and CONTROL arrows for larger jumps, HOME, END, SHIFT arrows to drag sequences around, keyboard entry of bases (A, C, G, T) and amino acids, etc. etc.
Certainly the accelerator method you suggested works fine. Very easy to put something like this in the callback loop:
Code:
CASE %WM_COMMAND ' Process control notifications SELECT CASE AS LONG CBCTL CASE Key_offset + 1 to Key_offset + 150 keycode = CBCTL - Key_offset CALL old_program(keycode): REM The keyboard processing loop for ASCII codes in the old program
Leave a comment: