set initial keyboard focus

This commit is contained in:
dickelbeck 2008-03-11 01:18:17 +00:00
parent dbbd6e402e
commit 1bb2da51cb
1 changed files with 24 additions and 14 deletions

View File

@ -82,6 +82,16 @@ bool WinEDA_FindFrame::Create( wxWindow* parent, wxWindowID id, const wxString&
GetSizer()->SetSizeHints(this);
Centre();
////@end WinEDA_FindFrame creation
m_NewTextCtrl->SetFocus();
/* does not work here, might work if moved elsewhere,
see void DrcDialog::OnInitDialog( wxInitDialogEvent& event )
// deselect the existing text, seems SetFocus() wants to emulate
// Microsoft and select all text, which is not desireable here.
m_NewTextCtrl->SetSelection(0,0);
*/
return true;
}