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++ 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 Go to previous messageGo to previous message
mirek is currently offline  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 Smile

More actually, that app sounds interesting. Keep us informed Wink

Mirek

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Vector< > & does't work
Next Topic: Stream::Putf
Goto Forum:
  


Current Time: Sun Aug 17 16:53:25 CEST 2025

Total time taken to generate the page: 0.07839 seconds