X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..a696db453c79ff58509195244bcf260dfdf13c81:/src/motif/choice.cpp diff --git a/src/motif/choice.cpp b/src/motif/choice.cpp index b805a5dabf..e0afa97dd9 100644 --- a/src/motif/choice.cpp +++ b/src/motif/choice.cpp @@ -13,7 +13,13 @@ #pragma implementation "choice.h" #endif -// For compilers that support precompilation, includes "wx.h". +#ifdef __VMS +#define XtDisplay XTDISPLAY +#define XtParent XTPARENT +#endif + +#include "wx/defs.h" + #include "wx/choice.h" #include "wx/utils.h" @@ -166,7 +172,7 @@ wxChoice::~wxChoice() } } -void wxChoice::Append(const wxString& item) +int wxChoice::DoAppend(const wxString& item) { Widget w = XtVaCreateManagedWidget (wxStripMenuCodes(item), #if USE_GADGETS @@ -220,6 +226,8 @@ void wxChoice::Append(const wxString& item) m_clientList.Insert( m_clientList.Item(m_noStrings-1), (wxObject*) NULL ); m_noStrings ++; + + return Number() - 1; } void wxChoice::Delete(int WXUNUSED(n)) @@ -511,11 +519,13 @@ int wxChoice::GetCount() const return Number(); } +/* int wxChoice::DoAppend(const wxString& item) { Append(item); return GetCount() - 1; } +*/ // Just appends, doesn't yet insert void wxChoice::DoInsertItems(const wxArrayString& items, int WXUNUSED(pos))