Hello Antonio or Rao ,
I have a reastaurant programm with touch interface.
I use BTNBMP to drow the buttons.
If the user wishes to charge , for example two coffe , the user presses the same butoon twice.
If the user presses the same button to quickly , the programm will charge only one coffee.
There is a waiting period before the same button can be pressed again .
I have noted that if I use BUTTONS , this problem does not arise , but I don't want to lose the graphics and colours of BTNBMP
This is a sample , if you press quickly twice on the button 'Count' , the number increases by one
Regards
Maurizio
http://www.nipeservice.com
I have a reastaurant programm with touch interface.
I use BTNBMP to drow the buttons.
If the user wishes to charge , for example two coffe , the user presses the same butoon twice.
If the user presses the same button to quickly , the programm will charge only one coffee.
There is a waiting period before the same button can be pressed again .
I have noted that if I use BUTTONS , this problem does not arise , but I don't want to lose the graphics and colours of BTNBMP
This is a sample , if you press quickly twice on the button 'Count' , the number increases by one
#include "FiveWin.ch"
function Main()
聽 聽local oDlg ,oSay , n := 0
聽 聽DEFINE DIALOG oDlg SIZE 370, 400
聽 聽
聽 聽
聽 聽@ 1, 1 SAY oSay VAR n 聽COLOR CLR_HRED 聽OF oDlg
聽 聽
聽 聽@ 11, 138 BTNBMP OF oDlg SIZE 40, 15 PIXEL 2007 NOBORDER ;
聽 聽 聽 PROMPT " &Clear " LEFT ;
聽 聽 聽 聽ACTION n := 0 聽,oSay:Refresh()
聽 聽@ 100, 2 BTNBMP OF oDlg SIZE 180, 18 PIXEL 2007 NOBORDER PROMPT " COUNT" ;
聽 聽 聽 LEFT 聽 ;
聽 聽 聽 ACTION n++ ,oSay:Refresh()
聽 聽 聽
聽 ACTIVATE DIALOG oDlg CENTERED
return nilRegards
Maurizio
http://www.nipeservice.com
Maurizio
www.nipeservice.com
www.nipeservice.com