[vtkusers] resizing of vtkTkRenderWidget

Kevin Wright krw at viz-solutions.com
Thu Jan 10 16:41:06 EST 2002


At 04:30 PM 1/10/2002 -0500, you wrote:
>Hi,
>
>I am using the vtkTkRenderWidget in tcl/tk:
>
>...
>vtkTkRenderWidget .f1.rw -width 800 -height 800 -rw renWin
>...
>
>Is there a way to resize the vtkTkRenderWidget when the window
>is maximized or will it always have the size as specified on
>creation (800x800 in this case)?

when you pack the vtkTkRenderWidget set the -expand flag to 1...

pack .f1.w -side top -fill both -expand 1

This should make the viewer fill the available space whenever the window is 
resized.

Kevin.





More information about the vtkusers mailing list