add the HTML string of the selected item to wxSimpleHtmlListBox events (closes #10159)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2008-12-29 16:06:53 +00:00
parent 84094285c5
commit 538483d8d0
3 changed files with 17 additions and 6 deletions

View File

@@ -302,6 +302,14 @@ protected:
virtual wxString OnGetItem(size_t n) const
{ return m_items[n]; }
virtual void InitEvent(wxCommandEvent& event, int n)
{
// we're not a virtual control and we can include the string
// of the item which was clicked:
event.SetString(m_items[n]);
wxVListBox::InitEvent(event, n);
}
wxArrayString m_items;
wxArrayPtrVoid m_HTMLclientData;