<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4522.1800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I've seen this behaviour with some tcl apps of mine 
under windows... its very annoying.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>One way around it (in tcl anyway) is to use the 
"grab" command to direct all mouse related events to the new window. Another is 
just to use vtkRenderWindow instead of vtkTkRenderWidget.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I don't know about python but the default behaviour 
for a tcl/tk widget under windows is that you have to click on the widget to 
switch the focus to it rather just enter it. Maybe it should be this for 
vtkTkRenderWidget?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Goodwin</FONT></DIV>
<DIV><FONT face=Arial size=2>University College Dublin</FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=millerjv@crd.ge.com href="mailto:millerjv@crd.ge.com">Miller, James V 
  (CRD)</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=vtkusers@public.kitware.com 
  href="mailto:vtkusers@public.kitware.com">Vtk Users (E-mail)</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, December 18, 2001 2:13 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [vtkusers] vtkTkRenderWidget.py, 
  Enter, Leave</DIV>
  <DIV><BR></DIV>
  <DIV><SPAN class=424220814-18122001><FONT size=2>vtkTkRenderWidget.py has two 
  member functions Enter() and Leave() that manage the "focus" as the mouse 
  enters and leaves a widget.&nbsp; </FONT></SPAN></DIV>
  <DIV><SPAN class=424220814-18122001><FONT size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=424220814-18122001><FONT size=2>This is giving me problems 
  when I open a new window in my app.&nbsp; The window appears and then is 
  immediately sent to the background so my TkRenderWidget is "on top".&nbsp; 
  This is rather disconcerting to my users to have a dialog pop up and 
  immediately move behind the application.</FONT></SPAN></DIV>
  <DIV><SPAN class=424220814-18122001><FONT size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=424220814-18122001><FONT size=2>Is the managing of the focus 
  necessary in vtkTkRenderWidget?&nbsp; If not, I'd like to remove it.&nbsp; If 
  people need it, then I will just subclass the widget in my 
  application.</FONT></SPAN></DIV><BR>
  <P><B><FONT face="Comic Sans MS" color=#000080>Jim Miller</FONT></B> 
  <BR><B><I><FONT face=Arial color=#ff0000 
  size=2>_____________________________________</FONT></I></B><I></I><BR><I></I><I><FONT 
  face=Arial color=#000000 size=1>Visualization &amp; Computer Vision<BR>GE 
  Corporate Research &amp; Development<BR>Bldg. KW, Room C218B<BR>P.O. Box 8, 
  Schenectady NY 12301<BR><BR></FONT><U><FONT face=Arial color=#0000ff 
  size=1>millerjv@crd.ge.com &lt;<A 
  href="mailto:millerjv@crd.ge.com">mailto:millerjv@crd.ge.com</A>&gt;</FONT></U></I><BR><I><FONT 
  face=Arial color=#000000 size=1>(518) 387-4005, Dial Comm: 8*833-4005, 
  </FONT></I><BR><I><FONT face=Arial color=#000000 size=1>Cell: (518) 505-7065, 
  Fax: (518) 387-6981</FONT></I> </P><BR>
  <DIV>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>