Hello,
I am trying to block the ENTER Key from "Clicking" buttons.
I have a touch screen (Point of Sale) application with about 45 buttons on the screen using TSBUTTONs. If the ENTER Key is pressed on the keyboard it activates the last button that had been pressed. I've been playing with SETFOCUS() but still can not get it to block the enter key. The Dialog is from a RESOURCE, is there anything in it I could do to block it.
I now need some expert help to solve my problem. The code is simple here is an example.
REDEFINE SBUTTON oBtnBmp ID m_ButtonLoop OF oMainDlg ;
FILE m_KeyBmp ;
ACTION( ProcessKey( &buttonmac, &plubuttonmac ) ) ;
prompt m_KeyDesc ;
TEXT ON_CENTER ;
FONT oButtonFont update ;
NOBORDER COLOR m_TextColor, CLR_BLACK
.....
Function ProcessKey(TheKey, ThePLU)
Do Case
..... Processes each button that was pressed
EndCase
Return
Thanks.