I have this in a subclass procedure:
This does exactly what I want it to do; however, the keys are rather "non-standard". I would rather use the shift+arrow keys and ctrl+arrow keys. So the subclassing and using %WM_KEYDOWN messages I have got the "hang of", it is just the keys I want to use don't work because I suspect they;like the F10 key, are reserved by default for other use. If I create say two buttons on a form, the arrow keys automatically switch back and forth between the buttons. I looked in the win32api.hlp file for a way to "remap"(for lack of a better term)these keys but didn't find anything. If ya' could give me some insight on the shift,ctrl and arrow keys and a way to define them for specific tasks I would appreciate it.
Thanks,
Adam
Code:
case %WM_KEYDOWN control get loc ghForm,gControl to x,y control get size ghForm,gControl to w,h select case wparam case %VK_PGUP decr y control set loc ghForm,gControl,x,y case %VK_PGDN incr y control set loc ghForm,gControl,x,y case %VK_HOME decr x control set loc ghForm,gControl,x,y case %VK_END incr x control set loc ghForm,gControl,x,y case %VK_F8 decr w control set size ghForm,gControl,w,h case %VK_F9 incr w control set size ghForm,gControl,w,h case %VK_F11 incr h control set size ghForm,gControl,w,h case %VK_F12 decr h control set size ghForm,gControl,w,h
Thanks,

Adam
Comment