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 #701 is a reply to message #699] Wed, 25 January 2006 22:31 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
Well, seems like one of those numerous cases that does not have the right solution....

Moving SetCapture would indeed help, but I do not like the idea that we should be generally THAT MUCH cautios about SetFocus calling order. Means I would rather advise not calling SetFocus in the LostFocus code...

For this kind of situation, U++ has "Accept" virtual method. It is not the same solution, as it actually allows you to move the focus, but it would not allow you to accept the dialog (e.g. via OK button).

If you insist on not-moving the focus, the one correct solution I see is to disable all sibling Ctrls (disabled Ctrl will not get one..).
 
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: Sat Jun 07 16:14:15 CEST 2025

Total time taken to generate the page: 0.05454 seconds