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  |
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
|
|
|
|
|
|
|
Goto Forum:
Current Time: Mon Apr 28 14:13:17 CEST 2025
Total time taken to generate the page: 0.00877 seconds
|