hard key problem

jerryjukem

Member
Licensed User
Longtime User
I have been trying to get hardkeys to work my program. The event is in a sub menu from the top level form. I have tried both hardkeys hK and ckeyup and ckeydown formats. While these work in form1 like the samples, once in my code the event is not seen. I have put i breakpoint into the keypressed event and it is never seen. Is there an issue with using this in other than the root menu? or is there some way I can test to see of the event is triggering?
 

jerryjukem

Member
Licensed User
Longtime User
hard key

Yes, if I understand you, the menu is opened and focused. I have tried the new1 statement both in the app_start and menu click routines to no avail(I would guess this would make no difference). The best I can determine is that the event is not triggering from the menu as the program pointer never gets to the key_pressed sub. I ran it line by line. I have cut and pasted your code into my program. If I run your form keys program, it works fine. I have a hardware1 component installed in this program, could this interfere? I have not tried deeper menus in another test program. That is my next try.
 

jerryjukem

Member
Licensed User
Longtime User
I am sorry, I misunderstood. What I meant to say is that the form is opened. This form is opened from a menu. There is no menu opened on the open form. I am trying to scroll in a table with smart phone cursor keys.
 

jerryjukem

Member
Licensed User
Longtime User
A clue. When I use the arrow keys on the form...the cursor moves left and right in an open textbox
 
Top