Board index » cppbuilder » Setting Focus ?
Max Blank
![]() CBuilder Developer |
Setting Focus ?2004-12-01 11:57:44 PM cppbuilder16 I need to show a control ('InputField') that is always visible, but placed onto a panel ('Panel') that can be shown or hidden. As soon as the panel becomes visible, the control shall automatically be focused. Therefore, I use the following code: Panel->Show(); Update(); InputField->SetFocus(); Unfortunately, this doesn't work: I usually get an error message stating that an invisible or disabled window cannot be focused. Max |