]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/propgrid/props.h
Richtext interface fixes and additions for Phoenix
[wxWidgets.git] / include / wx / propgrid / props.h
index 66d625a24d3b6ee009dc9979c7bc2abc391675cb..99c279f7a8fd985e93c2bd50a17f5203acc0bc1a 100644 (file)
@@ -564,7 +564,7 @@ public:
     // helpers
     size_t GetItemCount() const { return m_choices.GetCount(); }
     const wxString& GetLabel( size_t ind ) const
-        { return m_choices.GetLabel(ind); }
+        { return m_choices.GetLabel(static_cast<int>(ind)); }
 
 protected:
     // Used to detect if choices have been changed
@@ -838,7 +838,7 @@ PROPNAME::~PROPNAME() { } \
 bool PROPNAME::OnEvent( wxPropertyGrid* propgrid, \
                         wxWindow* primary, wxEvent& event ) \
 { \
-    if ( event.GetEventType() == wxEVT_COMMAND_BUTTON_CLICKED ) \
+    if ( event.GetEventType() == wxEVT_BUTTON ) \
         return OnButtonClick(propgrid,primary,(const wxChar*) CUSTBUTTXT); \
     return false; \
 }