wxXmString str( items[i].c_str() );
XmComboBoxAddItem((Widget) m_mainWidget, str(),
GetMotifPosition(pos), False);
- m_noStrings ++;
+
InsertNewItemClientData(pos, clientData, i, type);
}
#endif
wxControlWithItems::DoDeleteOneItem(n);
- m_noStrings--;
+ m_stringArray.RemoveAt(size_t(n));
AdjustDropDownListSize();
}
#ifdef LESSTIF_VERSION
XmListDeleteAllItems (GetXmList(this));
#else
- while(m_noStrings > 0)
+ size_t n = m_stringArray.GetCount();
+ while(n > 0)
{
- XmComboBoxDeletePos((Widget) m_mainWidget, m_noStrings--);
+ XmComboBoxDeletePos((Widget) m_mainWidget, n--);
}
#endif
- m_noStrings = 0;
+ m_stringArray.Clear();
AdjustDropDownListSize();
wxTextEntry::Clear();
void wxComboBox::ChangeFont(bool keepOriginalSize)
{
- if( m_font.Ok() && m_mainWidget != NULL )
+ if( m_font.IsOk() && m_mainWidget != NULL )
{
wxDoChangeFont( GetXmText(this), m_font );
wxDoChangeFont( GetXmList(this), m_font );