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 » How to stick focus on a control
Re: How to stick focus on a control [message #712 is a reply to message #708] Thu, 26 January 2006 20:30 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
Actually, I spend some time thinking about this trouble... and came to conclusion that this is the case we have encountered (and solved) a couple of times ago.

The trouble is that you actually would need to perform needed actions AFTER DocEdit::LeftDown (or other routine that moves focus as the reaction to user input event) finishes. In other words, after input event is processed and all widgets are stable again.

U++ has a tool for this: PostCallback. PostCallback records a callback that has to be invoked when processing of the input queue is finished (queue is emptied) (it actually works by placing callback to timer queue with zero delay).

So what in fact you need to do is use this to post callback, then release capture and you should be fine... Smile

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Focus sticks in MenuBar when iterating with TAB key
Next Topic: tray icon & balloon notification
Goto Forum:
  


Current Time: Sun Jun 09 00:41:14 CEST 2024

Total time taken to generate the page: 0.01891 seconds