[vtkusers] How to intercept Window Size Change Event

David Doria daviddoria+vtk at gmail.com
Fri Apr 9 17:49:41 EDT 2010


On Thu, Apr 8, 2010 at 3:47 AM, Sebastian Gatzka
<sebastian.gatzka at stud.tu-darmstadt.de> wrote:
> This is interesting for me too.
> When adding an observer on the render window, how can I limit the window
> size to a minimim value inside the callback function?

Here is an example:
http://www.vtk.org/Wiki/VTK/Examples/WindowModifiedEvent

The window horizontal size is limited to 400. However, it will let you
drag it past that, it just snaps back when you release the mouse.

Anyone know if it can be limited before it goes past 400?

Thanks,

David



More information about the vtkusers mailing list