workaround for one gtk Combo horror
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -577,6 +577,7 @@ void wxComboBox::OnChar( wxKeyEvent &event )
|
|||||||
if ( FindString(value) == wxNOT_FOUND )
|
if ( FindString(value) == wxNOT_FOUND )
|
||||||
{
|
{
|
||||||
Append(value);
|
Append(value);
|
||||||
|
SetStringSelection(value);
|
||||||
|
|
||||||
// and generate the selected event for it
|
// and generate the selected event for it
|
||||||
wxCommandEvent event( wxEVT_COMMAND_COMBOBOX_SELECTED, GetId() );
|
wxCommandEvent event( wxEVT_COMMAND_COMBOBOX_SELECTED, GetId() );
|
||||||
|
@@ -577,6 +577,7 @@ void wxComboBox::OnChar( wxKeyEvent &event )
|
|||||||
if ( FindString(value) == wxNOT_FOUND )
|
if ( FindString(value) == wxNOT_FOUND )
|
||||||
{
|
{
|
||||||
Append(value);
|
Append(value);
|
||||||
|
SetStringSelection(value);
|
||||||
|
|
||||||
// and generate the selected event for it
|
// and generate the selected event for it
|
||||||
wxCommandEvent event( wxEVT_COMMAND_COMBOBOX_SELECTED, GetId() );
|
wxCommandEvent event( wxEVT_COMMAND_COMBOBOX_SELECTED, GetId() );
|
||||||
|
Reference in New Issue
Block a user