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?
How to set the ***initial*** focus to an option? [message #6561] Sat, 18 November 2006 14:29 Go to previous message
Werner is currently offline  Werner
Messages: 234
Registered: May 2006
Location: Cologne / Germany
Experienced Member
I have a ParentCtrl and on it, at the top position, an Option. Below that is a Label and an EditField.

When the application starts, the EditField has the focus.

I would like the Option to have the focus, but I don't know how. "SetFocus()" doesn't work in the constructor.

Surprisingly, "SetFocus()" works well, when I move the focus later on ("OnKey()").

How can I set the focus to the (topmost) option, when the application starts?

Werner

 
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 09:57:33 CEST 2025

Total time taken to generate the page: 0.06924 seconds