Board index » cppbuilder » checking if a button is down
Totte Karlsson
![]() CBuilder Developer |
checking if a button is down2008-04-17 01:18:12 AM cppbuilder30 Hi, I want to implement the following, when a button is clicked I want to execute an action one time. If the button is kept held down, I want the action to be executed continuously, until the button is released. I was thinking having a timer, kicked off by clicking the button. Inside the timers ONTimer, I could check if the button is still pressed, if so I will execute the action, if not, I will disable the timer. But how can I check if the Button is in a down state? I've been searching for it but can't find an answer... -totte |