added support for range types to runtime depersister
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -511,9 +511,22 @@ void wxRuntimeDepersister::SetConnect(int eventSourceObjectID,
|
||||
|
||||
if ( ehsource && ehsink )
|
||||
{
|
||||
ehsource->Connect( -1 , delegateInfo->GetEventType() ,
|
||||
handlerInfo->GetEventFunction() , NULL /*user data*/ ,
|
||||
ehsink ) ;
|
||||
if( delegateInfo->GetLastEventType() == -1 )
|
||||
{
|
||||
ehsource->Connect( -1 , delegateInfo->GetEventType() ,
|
||||
handlerInfo->GetEventFunction() , NULL /*user data*/ ,
|
||||
ehsink ) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
for ( wxEventType iter = delegateInfo->GetEventType() ; iter <= delegateInfo->GetLastEventType() ; ++iter )
|
||||
{
|
||||
ehsource->Connect( -1 , iter ,
|
||||
handlerInfo->GetEventFunction() , NULL /*user data*/ ,
|
||||
ehsink ) ;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user