Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Simulate a button click
Simulate a button click [message #37454] Sun, 07 October 2012 20:18 Go to previous message
Mircode is currently offline  Mircode
Messages: 17
Registered: September 2012
Promising Member
Hi there!

My application shows a keyboard made of pusher-buttons. If the user clicks a button with the mouse, the keystroke gets simulated. On the other hand, if the user physically presses a key on his keyboard, the pusher has to look pushed as long as the user holds the key.

How can I do that?

PseudoPush almost does the trick, except it releases immediately. I dont know if the KeyPush() method would help, but its protected.

Ah, and I dont want to assign a hotkey to the pusher or something like that, I want to be able to make the button look pushed from anywhere in my code.

Thanks for help in advance!

Greetings,
Mirko
 
Read Message
Read Message
Read Message
Previous Topic: QTF tooltip on tray icon.
Next Topic: Change window style
Goto Forum:
  


Current Time: Thu Apr 25 17:31:17 CEST 2024

Total time taken to generate the page: 0.02741 seconds