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

Home » Public Forums » archive » Re: Problems with draw_xsize keyword in widget_control
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: Problems with draw_xsize keyword in widget_control [message #5571] Wed, 10 January 1996 00:00 Go to previous message
Ken Knighton is currently offline  Ken Knighton
Messages: 44
Registered: May 1995
Member
ldorffne@fbgeo1.tuwien.ac.at (Lionel Dorffner) wrote:
> I have problems with the 'draw_xsize' and 'draw_ysize' keywords in
> widget_control. As the manual says those keywords can be used to change the
> width and height of the drawable area for scrolling draw widgets. With the
> keywords 'scr_xsize' and 'scr_ysize' I only can change the viewport size.

The draw_xsize and draw_ysize keywords worked for me under HP_UX/IDL 4.0.

To the best of my knowledge, the following table shows the actual keywords that
must be used to accomplish various sizing operations on a draw widget. As you
can see, the keywords for creating the widget using WIDGET_DRAW and changing it
using WIDGET_CONTROL are inconsistent. The documentation does a poor job of
making this clear.

WIDGET_CONTROL WIDGET_DRAW
-------------------------------------------------------
Entire Widget | SCR_X/YSIZE | SCR_X/YSIZE
--------------|-------------------|--------------------
Viewport | X/YSIZE | X/Y_SCROLL_SIZE
--------------|-------------------|--------------------
Canvas | DRAW_X/YSIZE | X/YSIZE

As you can see from the above table, the keywords are inconsistent in their
usage.

If the draw widget is created with scroll bars, then it seems to want them
there (or at least the space for them) even if the viewport and canvas are the
same size so that they are no longer needed. There is no way to turn this off
without destroying and recreating the draw widget. Note that
destroying/recreating isn't necessarily a bad way to go.

My experience is primarily on HP-UX/X-Windows/IDL 4.0

I hope this helps.

Ken Knighton knighton@gav.gat.com knighton@cts.com
Fusion Division
General Atomics
San Diego, CA
[Message index]
 
Read Message
Read Message
Previous Topic: EPS printouts from IDL 4.0.1
Next Topic: Re: Looking for a book on idl

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

Current Time: Thu Oct 09 23:17:17 PDT 2025

Total time taken to generate the page: 0.95939 seconds