set initial keyboard focus
This commit is contained in:
parent
dbbd6e402e
commit
1bb2da51cb
|
@ -82,6 +82,16 @@ bool WinEDA_FindFrame::Create( wxWindow* parent, wxWindowID id, const wxString&
|
||||||
GetSizer()->SetSizeHints(this);
|
GetSizer()->SetSizeHints(this);
|
||||||
Centre();
|
Centre();
|
||||||
////@end WinEDA_FindFrame creation
|
////@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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue