+ long ids = wxWindow::NewControlId();
+ m_contextMenu->AppendSeparator();
+ m_contextMenu->Append(ids, _("&Properties"));
+
+ Connect(ids, wxEVT_UPDATE_UI, wxUpdateUIEventHandler(wxRichTextCtrl::OnUpdateImage));
+ Connect(ids, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(wxRichTextCtrl::OnImage));
+ m_imagePropertyId = ids;