#endif
#include "wx/combobox.h"
+
+#if wxUSE_COMBOBOX
+
#include "wx/settings.h"
#include <wx/intl.h>
{
if (g_isIdle) wxapp_install_idle_handler();
- if (!combo->HasVMT()) return;
+ if (!combo->m_hasVMT) return;
if (g_blockEventsOnDrag) return;
{
if (g_isIdle) wxapp_install_idle_handler();
+ if (!combo->m_hasVMT) return;
+
wxCommandEvent event( wxEVT_COMMAND_TEXT_UPDATED, combo->GetId() );
event.SetString( combo->GetValue() );
event.SetEventObject( combo );
PreCreation( parent, id, pos, size, style, name );
+#if wxUSE_VALIDATORS
SetValidator( validator );
+#endif
m_widget = gtk_combo_new();
gtk_widget_show( list_item );
}
- m_parent->AddChild( this );
-
- (m_parent->m_insertCallback)( m_parent, this );
+ m_parent->DoAddChild( this );
PostCreation();
void wxComboBox::OnSize( wxSizeEvent &event )
{
- wxControl::OnSize( event );
+ event.Skip();
return;
(window == GTK_COMBO(m_widget)->button->window ) );
}
+#endif