#endif
#include "wx/defs.h"
+
+#if wxUSE_CHOICE
+
#include "wx/choice.h"
#include "wx/menu.h"
#include "wx/mac/uma.h"
{
Append(choices[i]);
}
- return TRUE;
+ return true;
}
// ----------------------------------------------------------------------------
{
for( int i = 0 ; i < GetCount() ; i++ )
{
- if ( GetString( i ).IsSameAs(s, FALSE) )
+ if ( GetString( i ).IsSameAs(s, false) )
return i ;
}
return wxNOT_FOUND ;
return (wxClientData *)DoGetItemClientData(n);
}
-void wxChoice::MacHandleControlClick( WXWidget control , wxInt16 controlpart , bool WXUNUSED(mouseStillDown))
+void wxChoice::MacHandleControlClick( WXWidget control , wxInt16 controlpart , bool WXUNUSED(mouseStillDown))
{
wxCommandEvent event(wxEVT_COMMAND_CHOICE_SELECTED, m_windowId );
int n = GetSelection();
}
return wxSize(lbWidth, lbHeight);
}
+
+#endif // wxUSE_CHOICE