<p style="margin-bottom: 12pt; color: rgb(0, 0, 0);"><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-GB">Hi,<br>
till now I've successfully integrated
wxWindows and VTK in my own application by using the wxVTKRenderWindowInteractor
class.</span></font></p>

<p style="margin-bottom: 12pt; color: rgb(0, 0, 0);"><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-GB">I
have developed a driver for a new interaction device and</span></font> <span lang="EN-GB">a
wxWidgetsCustomEvent class that handles
the events it generates, now I want to invoke some vtkUserEvents by using the Callback functions
associated to my wxWidgetsCustomEvent. <br>
I&#39; ve added the observers and the callback functions of my vtkUserEvents in&nbsp;vtkInteractorStyle and I've developed a subclass of vtkinteractorStyle
with the necessary functionalities.</span></p>

<p style="margin-bottom: 12pt; color: rgb(0, 0, 0);"><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-GB">If i invoke my
vtkEvents from a function associated to a standard wxEvent it works fine. The problem is that if I invoke the vtkEvents from a
function associated to a custom wxEvent, VTK seems to lose the focus and if I invoke a grabfocus or a dolly, the application crashes by an error in
&quot;vtkWin32OpenGLRenderWindow::MakeCurrent()". <br>
<br>
</span></font></p>

<p style="margin-bottom: 12pt; color: rgb(0, 0, 0);"><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-GB">After my
vtkEvent is invoked the first time, is invoked a vtkCommand::LeaveEvent like
the mouse pointer leaves the vtkwindow, how could i avoid this invocation and
such situation?<br>
<br>
</span></font></p>

<p style="margin-bottom: 12pt; color: rgb(0, 0, 0);"><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-GB">Can i invoke
vtkEvent from a wxCustomEvent without provoking
render or focus problems? <br>
I hope someone can explain me the steps
needed in order to create vtkCustomEvents that can answer to my
wxCustomEvents like to standard wxEvents?<br>
<br>
</span></font></p>

<p style="margin-bottom: 12pt; color: rgb(0, 0, 0);"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Thanks to everybody.</span></font></p>

<p style="margin-bottom: 12pt; color: rgb(0, 0, 0);"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Aniello</span></font></p>