<br><font size=2 face="Courier New">Hello VTK community,</font>
<br>
<br><font size=2 face="Courier New">We are trying to evaluate the ActiViz/COM
control for our VB 2003 applications. All is going well except we
are stuck trying to change the 'RenderWindowInteractor' when we place the
control in a MDI child window (see image). </font>
<br>
<br><img src=cid:_1_03D9F20C03D9E868005619D986257157>
<br>
<br><font size=2 face="Courier New">The default interactor (i.e. InteractorStyleJoystickCamera)
is working but we can not change the interactor style or setup event observers.
The following code works if the control is placed in the main window
container but has no effect when placed in a child window.....</font>
<br>
<br><font size=2 face="Courier New"> renWin
= </font><font size=2 color=blue face="Courier New">CType</font><font size=2 face="Courier New">(AxvtkRenderWindowControl1.GetRenderWindow,
vtkRenderWindow)</font>
<br><font size=2 face="Courier New"> renCol
= renWin.GetRenderers</font>
<br><font size=2 face="Courier New"> renCol.InitTraversal()</font>
<br><font size=2 face="Courier New"> ren1 =
renCol.GetNextItem</font>
<br><font size=2 face="Courier New"> ren1.SetBackground(0,
0, 0)</font>
<br><font size=2 face="Courier New"> rwi = renWin.GetInteractor</font>
<br><font size=2 face="Courier New"> rwiStyleTBC
= </font><font size=2 color=blue face="Courier New">New</font><font size=2 face="Courier New">
vtkInteractorStyleTrackballCamera</font>
<br><font size=2 face="Courier New"> rwi.SetInteractorStyle(rwiStyleTBC)</font>
<br>
<br>
<br><font size=2 face="sans-serif">Steve Koch<br>
TRINITY CONSULTANTS, INC.<br>
Applications Developer<br>
breeze-software.com<br>
skoch@trinityconsultants.com<br>
phone: 972-661-8881 x1332<br>
fax: +214-615-7425</font>
<pre>_________________________________________________________________________
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you
Received this in error, please contact the sender and delete the material
from any computer.
_________________________________________________________________________