Send event on toggle deselecting
This commit is contained in:
@@ -1078,7 +1078,7 @@ void wxListBox::DoSelect(int item, bool sel)
|
|||||||
|
|
||||||
void wxListBox::SelectAndNotify(int item)
|
void wxListBox::SelectAndNotify(int item)
|
||||||
{
|
{
|
||||||
if( item != -1 )
|
if ( item != -1 )
|
||||||
{
|
{
|
||||||
DoSelect(item);
|
DoSelect(item);
|
||||||
SendEvent(wxEVT_LISTBOX);
|
SendEvent(wxEVT_LISTBOX);
|
||||||
@@ -1156,7 +1156,10 @@ bool wxListBox::PerformAction(const wxControlAction& action,
|
|||||||
item = m_current;
|
item = m_current;
|
||||||
|
|
||||||
if ( IsSelected(item) )
|
if ( IsSelected(item) )
|
||||||
|
{
|
||||||
DoUnselect(item);
|
DoUnselect(item);
|
||||||
|
SendEvent(wxEVT_LISTBOX);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
SelectAndNotify(item);
|
SelectAndNotify(item);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user