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 set the ***initial*** focus to an option?
Re: How to set the ***initial*** focus to an option? [message #6562 is a reply to message #6561] Sat, 18 November 2006 15:01 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14266
Registered: November 2005
Ultimate Member
Only widgets visible on the screen can have focus (therefore setting it in the constructor cannot work).

However, each TopWindow remembers the "focused child" and when it gets activated, places (restores) actual focus to it. Note that the main purpose of this is to maintain the expexted user experience.

You can change this "focused child" by calling TopWindow's ActiveFocus with child as parameter. If TopWindows is active ("foreground"), child gets focus immediately, otherwise it gets in once TopWindow gets active.

Short answer: Use ActiveFocus Wink

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: first row strange behaviour in columnlist
Next Topic: DropList bug
Goto Forum:
  


Current Time: Fri Jul 18 13:36:17 CEST 2025

Total time taken to generate the page: 0.03945 seconds