#pragma hdrstop
#endif
-#include "wx/ribbon/gallery.h"
-
#if wxUSE_RIBBON
+#include "wx/ribbon/gallery.h"
#include "wx/ribbon/art.h"
#include "wx/ribbon/bar.h"
#include "wx/dcbuffer.h"
wxDEFINE_EVENT(wxEVT_COMMAND_RIBBONGALLERY_HOVER_CHANGED, wxRibbonGalleryEvent);
wxDEFINE_EVENT(wxEVT_COMMAND_RIBBONGALLERY_SELECTED, wxRibbonGalleryEvent);
+wxDEFINE_EVENT(wxEVT_COMMAND_RIBBONGALLERY_CLICKED, wxRibbonGalleryEvent);
IMPLEMENT_DYNAMIC_CLASS(wxRibbonGalleryEvent, wxCommandEvent)
IMPLEMENT_CLASS(wxRibbonGallery, wxRibbonControl)
notification.SetGalleryItem(m_selected_item);
ProcessWindowEvent(notification);
}
+
+ wxRibbonGalleryEvent notification(
+ wxEVT_COMMAND_RIBBONGALLERY_CLICKED, GetId());
+ notification.SetEventObject(this);
+ notification.SetGallery(this);
+ notification.SetGalleryItem(m_selected_item);
+ ProcessWindowEvent(notification);
}
}
m_mouse_active_rect = NULL;