[vtkusers] RenderWindow not tracking position

Malcolm Drummond geov at netactive.co.za
Sat Apr 21 14:12:46 EDT 2001


Hi

vtkRenderWindow is not tracking position when the window is dragged. For vtkWin32OpenGLRenderWindow the following code seems to do the trick (in the switch statement in the MessageProc). Unfortunately I know less than nothing about X.

Could someone close to the source make the appropriate changes to vtkWin32OpenGLRenderWindow and vtkXRenderWindow

Thanks

case WM_MOVE:
        /* track window position */
        if (this->ContextId) 
          {
          int x = (int) LOWORD(lParam);
          int y = (int) HIWORD(lParam); 
          if (!(this->ParentId))
           {
           x -= GetSystemMetrics(SM_CXFRAME);
           y -= (GetSystemMetrics(SM_CYFRAME)+GetSystemMetrics(SM_CYCAPTION));
           }
          this->SetPosition(x,y);
          return 0;
          } 

Malcolm Drummond
GeoVision cc
Cell 082-822-1153
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20010421/2fe57299/attachment.htm>


More information about the vtkusers mailing list