Add a TODO comment for wxVListBox refactoring
Just note that it would be better to avoid duplicating the code already existing in another place in wxVListBoxComboPopup::SendComboBoxEvent().
This commit is contained in:
parent
cd8dade23c
commit
366233e400
1 changed files with 5 additions and 0 deletions
|
|
@ -233,6 +233,11 @@ void wxVListBoxComboPopup::DismissWithEvent()
|
|||
|
||||
void wxVListBoxComboPopup::SendComboBoxEvent( int selection )
|
||||
{
|
||||
// TODO: wxVListBox should be refactored to inherit from wxItemContainer
|
||||
// and then we would be able to just call SendSelectionChangedEvent()
|
||||
// (which, itself, should be moved down to wxItemContainer from
|
||||
// wxControlWithItemsBase) instead of duplicating its code.
|
||||
|
||||
wxCommandEvent evt(wxEVT_COMBOBOX,m_combo->GetId());
|
||||
|
||||
evt.SetEventObject(m_combo);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue