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();
event.SetClientData( item->GetClientData(idx) );
event.SetExtraLong(true);
event.SetEventObject(item);
- item->GetEventHandler()->ProcessEvent(event);
+ item->HandleWindowEvent(event);
break;
}
case XmCR_VALUE_CHANGED:
event.SetString( item->GetValue() );
event.SetExtraLong(true);
event.SetEventObject(item);
- item->GetEventHandler()->ProcessEvent(event);
+ item->HandleWindowEvent(event);
break;
}
default: