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

Home » Public Forums » archive » Resizing widgets
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Resizing widgets [message #1133] Mon, 26 July 1993 16:38
eharold is currently offline  eharold
Messages: 12
Registered: July 1993
Junior Member
I'm writing a widgets based application using IDL 3.0.0
om a SparcStation with SunOS 4.1.3 and OpenWindows 3.

I can get an event of type 'WIDGET_BASE' telling me that
my base window has been resized. However once I get it what do I do
with it? The window contains a right column of buttons and a left
column with a draw widget and a scrolling text widget. The draw
widget contains a 2-D plot. I'd like to resize the draw and text
widgets to use the available space when the base window is resized.
Is there a standard way to do this? Or even a hack?

The best I've come up with so far is to destroy and redraw
all the subsidiary widgets when I get a WIDGET_BASE event using the
ev.x and ev.y fields to set the xsize and ysize for the widgets.
However, even though I clear all events as soon as the redrawing is
finished, I still seem to pick up several extra WIDGET_BASE events
which promptly cause destruction and recreation of all my widgets
with various undesired effects, most notably the base widget being
sized larger than the screen.

Does anyone know the "right" way to resize widgets to fit a
given window? Or have some sample code that accomplishes this?
I'd greatly appreciate any help that could be offered.


--

Elliotte Rusty Harold National Solar Observatory
eharold@sunspot.noao.edu Sunspot NM 88349
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: structure-array-structure-array
Next Topic: Veroni region routine in WAVE/IDL

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

Current Time: Fri Oct 10 12:18:30 PDT 2025

Total time taken to generate the page: 2.39660 seconds