comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: changing size of the draw widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: changing size of the draw widget [message #5090 is a reply to message #5069] Thu, 21 September 1995 00:00 Go to previous message
zawodny is currently offline  zawodny
Messages: 121
Registered: August 1992
Senior Member
In article <43pssb$g3j@ncar.ucar.edu> Charlie Zender <zender@ncar.ucar.edu> writes:
> i'm simply wondering how to get the size of my graphics to change with the size
> of the drawing window that they reside in. i create a base widget
> (a separate x-window) for the drawing, and then i make a draw
> widget as a child of the base widget, specifying an initial size with the
> [xsize,ysize] keywords to the widget_draw() routine. these initial
> x and y sizes are what is reported by the !d.x_size, !d.y_size variables
> forever after, even if the user changes the size of the actual x-window.
> so how do i find out the size of the x-window, so that i can reconfigure
> the draw widget? or is there a better way of doing this?


Try using the /TLB_SIZE_EVENTS keyword of WIDGET_BASE and then writing
an event handler to process these base widget resize events. Hint:
Keep track of the old size and assume that the difference between it
and the new size is what you need to change the draw widget by. Use
WIDGET_CONTROL to resize the draw widget. All of this assumes that
the layout of any of the other widgetry around the draw widget does
not change it's geometry in response to the resize event. OH, you will
also have to redraw and graphics that might have bee in the old draw
widget as they will not automatically strecth to fit the new size.

Best of luck
--
Dr. Joseph M. Zawodny KO4LW NASA Langley Research Center
E-mail: J.M.Zawodny@LaRC.NASA.gov MS-475, Hampton VA, 23681-0001
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Translucent image after polyshade
Next Topic: Question: Storage scheme of 2D-wavelet-coefficients

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 13:16:06 PDT 2025

Total time taken to generate the page: 2.00044 seconds