]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/combobox.cpp
Updated docs for wxGrid::SelectBlock
[wxWidgets.git] / src / gtk / combobox.cpp
index 8369ebbf0fbfb8a8573e4efd41ea550ea263ece5..fe859bb2eea5a6b6daf311aa769cc7ee1b7a17a6 100644 (file)
@@ -138,8 +138,6 @@ bool wxComboBox::Create( wxWindow *parent, wxWindowID id, const wxString& value,
 
     PostCreation();
 
 
     PostCreation();
 
-    ApplyWidgetStyle();
-
     ConnectWidget( GTK_COMBO(m_widget)->button );
 
     if (!value.IsNull()) SetValue( value );
     ConnectWidget( GTK_COMBO(m_widget)->button );
 
     if (!value.IsNull()) SetValue( value );
@@ -579,6 +577,7 @@ void wxComboBox::OnChar( wxKeyEvent &event )
             if ( FindString(value) == wxNOT_FOUND )
             {
                 Append(value);
             if ( FindString(value) == wxNOT_FOUND )
             {
                 Append(value);
+                SetStringSelection(value);
 
                 // and generate the selected event for it
                 wxCommandEvent event( wxEVT_COMMAND_COMBOBOX_SELECTED, GetId() );
 
                 // and generate the selected event for it
                 wxCommandEvent event( wxEVT_COMMAND_COMBOBOX_SELECTED, GetId() );