Home » U++ Library support » U++ Core » How to simulate keyboard (and without focus)?
Re: How to simulate keyboard (and without focus)? [message #6797 is a reply to message #6795] |
Tue, 28 November 2006 23:05   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
WebChaot wrote on Tue, 28 November 2006 16:12 |
Is it possible to "send" a key via code?
|
Just call Key method by your code (normally, it is called as result of Key event, but nothing can prevent your code doing so).
Quote: |
The second question is: Is it possible to popup a static rect with some buttons - but without to get focus?
|
There is "NoWantFocus" flag - Ctrls with such flag cannot obtain focus by "standard" means (e.g. by TopWindow). They still can get it explicitly by your code, but that you can avoid..
I need to develop a virtual keyboard for a touchscreen solution - therefore I dont want to loose focus on selected editfield while typing (=clicking) on the popped up keypanel.
I see. Yes, it is OK. However, maybe even moving focus would be OK - virtual keyboard is mouse thing, I would just left focus processing as it is and simply send virtual keyboard events to GetFocusCtrl()->Key
I hope, I didn't explain too confusing :)
Actually, very understandable 
More actually, that app sounds interesting. Keep us informed 
Mirek
|
|
|
Goto Forum:
Current Time: Sun Aug 17 16:53:25 CEST 2025
Total time taken to generate the page: 0.07839 seconds
|