]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/menucmn.cpp
Add markup support to wxMSW wxButton and show it in the sample.
[wxWidgets.git] / src / common / menucmn.cpp
index aa0ed91bf8bc6634abda14afc3177d79ed96aca1..517142f4e2256a6f31fa2660b79ad329c0cc8b03 100644 (file)
@@ -60,11 +60,13 @@ wxEND_FLAGS( wxMenuStyle )
 wxIMPLEMENT_DYNAMIC_CLASS_XTI(wxMenu, wxEvtHandler, "wx/menu.h")
 wxCOLLECTION_TYPE_INFO( wxMenuItem *, wxMenuItemList ) ;
 
+#if wxUSE_EXTENDED_RTTI    
 template<> void wxCollectionToVariantArray( wxMenuItemList const &theList,
                                            wxAnyList &value)
 {
     wxListCollectionToAnyList<wxMenuItemList::compatibility_iterator>( theList, value ) ;
 }
+#endif
 
 wxBEGIN_PROPERTIES_TABLE(wxMenu)
 wxEVENT_PROPERTY( Select, wxEVT_COMMAND_MENU_SELECTED, wxCommandEvent)
@@ -90,6 +92,7 @@ wxBEGIN_FLAGS( wxMenuBarStyle )
 wxFLAGS_MEMBER(wxMB_DOCKABLE)
 wxEND_FLAGS( wxMenuBarStyle )
 
+#if wxUSE_EXTENDED_RTTI    
 // the negative id would lead the window (its superclass !) to
 // vetoe streaming out otherwise
 bool wxMenuBarStreamingCallback( const wxObject *WXUNUSED(object), wxObjectWriter *,
@@ -97,6 +100,7 @@ bool wxMenuBarStreamingCallback( const wxObject *WXUNUSED(object), wxObjectWrite
 {
     return true;
 }
+#endif
 
 wxIMPLEMENT_DYNAMIC_CLASS_XTI_CALLBACK(wxMenuBar, wxWindow, "wx/menu.h", \
                                        wxMenuBarStreamingCallback)