Long press event on button

1 view
Skip to first unread message

Sabyasachi Mishra

unread,
Oct 12, 2006, 2:02:49 AM10/12/06
to Bangalore...@googlegroups.com

Hi All,
Am creating a phone application for PocketPC using eVC++ 4.0 .
and i have a button in the GUI.
that button's functionality  is to print some 'X' character when
single click and print 'Y' when held for a long time.
but am not getting any separate event for holding the button for lets
say 2 secs.
Could anyone plz help me in this case.
i wanted to how to capture the Long press event on the button (what is
the event).
or any help how  to handle this case.

thanks in advance......
Sabyasachi


Vadivel Palanisamy

unread,
Oct 12, 2006, 3:00:28 AM10/12/06
to Bangalore...@googlegroups.com, Bangalore...@googlegroups.com

Hi,

One approach is, in the key-down event start your own timer and key-up event Stop & check the time.  Based on the time difference you decide what you want to do.

Thanks
Vadivel



"Sabyasachi  Mishra" <sab...@rediffmail.com>
Sent by: Bangalore...@googlegroups.com

10/12/2006 11:32 AM


To
<Bangalore...@googlegroups.com>
cc
Subject
Long press event on button


thanks in advance......
Sabyasachi





______________________________________________________________________


______________________________________________________________________

Reply all
Reply to author
Forward
0 new messages