git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30081
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+ InvalidateBestSize();
+
m_clientObjectList.Insert( pos, (wxObject*) NULL );
EnableEvents();
m_clientObjectList.Insert( pos, (wxObject*) NULL );
EnableEvents();
+
+ InvalidateBestSize();
m_clientDataList.Clear();
EnableEvents();
m_clientDataList.Clear();
EnableEvents();
+
+ InvalidateBestSize();
}
void wxComboBox::Delete( int n )
}
void wxComboBox::Delete( int n )
m_clientDataList.Erase( node );
EnableEvents();
m_clientDataList.Erase( node );
EnableEvents();
+
+ InvalidateBestSize();
}
void wxComboBox::SetString(int n, const wxString &text)
}
void wxComboBox::SetString(int n, const wxString &text)
{
wxFAIL_MSG( wxT("wxComboBox: wrong index") );
}
{
wxFAIL_MSG( wxT("wxComboBox: wrong index") );
}
+
+ InvalidateBestSize();
}
int wxComboBox::FindString( const wxString &item ) const
}
int wxComboBox::FindString( const wxString &item ) const
wxString tmp = wxT("");
if (!value.IsNull()) tmp = value;
gtk_entry_set_text( GTK_ENTRY(entry), wxGTK_CONV( tmp ) );
wxString tmp = wxT("");
if (!value.IsNull()) tmp = value;
gtk_entry_set_text( GTK_ENTRY(entry), wxGTK_CONV( tmp ) );
+
+ InvalidateBestSize();
}
void wxComboBox::Copy()
}
void wxComboBox::Copy()
void wxComboBox::OnSize( wxSizeEvent &event )
{
event.Skip();
void wxComboBox::OnSize( wxSizeEvent &event )
{
event.Skip();
-
-#if 0
- int w = 21;
- gtk_widget_set_usize( GTK_COMBO(m_widget)->entry, m_width-w-1, m_height );
-
- gtk_widget_set_uposition( GTK_COMBO(m_widget)->button, m_x+m_width-w, m_y );
- gtk_widget_set_usize( GTK_COMBO(m_widget)->button, w, m_height );
-#endif // 0
}
void wxComboBox::DoApplyWidgetStyle(GtkRcStyle *style)
}
void wxComboBox::DoApplyWidgetStyle(GtkRcStyle *style)
// we know better our horizontal extent: it depends on the longest string
// in the combobox
// we know better our horizontal extent: it depends on the longest string
// in the combobox
if ( m_widget )
{
int width;
if ( m_widget )
{
int width;
+ InvalidateBestSize();
+
m_clientObjectList.Insert( pos, (wxObject*) NULL );
EnableEvents();
m_clientObjectList.Insert( pos, (wxObject*) NULL );
EnableEvents();
+
+ InvalidateBestSize();
m_clientDataList.Clear();
EnableEvents();
m_clientDataList.Clear();
EnableEvents();
+
+ InvalidateBestSize();
}
void wxComboBox::Delete( int n )
}
void wxComboBox::Delete( int n )
m_clientDataList.Erase( node );
EnableEvents();
m_clientDataList.Erase( node );
EnableEvents();
+
+ InvalidateBestSize();
}
void wxComboBox::SetString(int n, const wxString &text)
}
void wxComboBox::SetString(int n, const wxString &text)
{
wxFAIL_MSG( wxT("wxComboBox: wrong index") );
}
{
wxFAIL_MSG( wxT("wxComboBox: wrong index") );
}
+
+ InvalidateBestSize();
}
int wxComboBox::FindString( const wxString &item ) const
}
int wxComboBox::FindString( const wxString &item ) const
wxString tmp = wxT("");
if (!value.IsNull()) tmp = value;
gtk_entry_set_text( GTK_ENTRY(entry), wxGTK_CONV( tmp ) );
wxString tmp = wxT("");
if (!value.IsNull()) tmp = value;
gtk_entry_set_text( GTK_ENTRY(entry), wxGTK_CONV( tmp ) );
+
+ InvalidateBestSize();
}
void wxComboBox::Copy()
}
void wxComboBox::Copy()
void wxComboBox::OnSize( wxSizeEvent &event )
{
event.Skip();
void wxComboBox::OnSize( wxSizeEvent &event )
{
event.Skip();
-
-#if 0
- int w = 21;
- gtk_widget_set_usize( GTK_COMBO(m_widget)->entry, m_width-w-1, m_height );
-
- gtk_widget_set_uposition( GTK_COMBO(m_widget)->button, m_x+m_width-w, m_y );
- gtk_widget_set_usize( GTK_COMBO(m_widget)->button, w, m_height );
-#endif // 0
}
void wxComboBox::DoApplyWidgetStyle(GtkRcStyle *style)
}
void wxComboBox::DoApplyWidgetStyle(GtkRcStyle *style)
// we know better our horizontal extent: it depends on the longest string
// in the combobox
// we know better our horizontal extent: it depends on the longest string
// in the combobox
if ( m_widget )
{
int width;
if ( m_widget )
{
int width;