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:
		| @@ -510,11 +510,24 @@ void wxRuntimeDepersister::SetConnect(int eventSourceObjectID, | ||||
|     wxEvtHandler *ehsink = dynamic_cast< wxEvtHandler *>(m_data->GetObject(eventSinkObjectID) ) ; | ||||
|  | ||||
|     if ( ehsource && 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 ) ; | ||||
|             } | ||||
|         } | ||||
|          | ||||
|     } | ||||
| } | ||||
|  | ||||
| wxObject *wxRuntimeDepersister::GetObject(int objectID) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user