Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Holding a Button down
Holding a Button down [message #20750] |
Sat, 04 April 2009 06:55 |
Mirari
Messages: 1 Registered: April 2009
|
Junior Member |
|
|
Hi,
Completely new user. I'm using U++ to develop a GUI application to control a Wireless Car for university. I've been searching for the past hour or so on whether or not there is anyway to detect if a button has been held down.
For example, I have a button called "forward" and at this point I simply want it to increase an integer while its held down. Obviously the IsPush() method is protected so the code below won't work but you can see what I'm trying to accomplish. Is there any method I could use to replace the IsPush() part so that i is continuously incremented as long as the button is held down?
void RouterAppWindow::Forward() {
while (forward.IsPush() == true) {
i++;
}
text = Format("%d", i);
Refresh();
}
Any help will be appreciated.
|
|
|
Goto Forum:
Current Time: Thu May 09 09:50:57 CEST 2024
Total time taken to generate the page: 0.02524 seconds
|