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

Home » Public Forums » archive » Scrolling draw window question
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
Scrolling draw window question [message #42466] Wed, 09 February 2005 17:37
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
Here is a short script that displays an image in a scrolling draw window:

base = WIDGET_BASE()
draw = WIDGET_DRAW(base, RETAIN = 2, $
XSIZE = 400, $
YSIZE = 400, $
X_SCROLL_SIZE = 200, $
Y_SCROLL_SIZE = 400)
WIDGET_CONTROL, BASE, /REALIZE
TVSCL, DIST(400)


The idea is to scroll in only one dimension (horizontal in this case).

When I run this script, the display window appears to be a few pixels
smaller than the image size of 400. As a result, there is a
y-scrollbar; and moving y-slider moves the image up and down slightly.
This is on Mac OS X with X11.

So, how do I make one dimension of the viewable window match the image
size?

(The SCR_XSIZE and SCR_YSIZE keywords seem to make the problem worse.)

Thanks, Ken Bowman
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: how to create IDL batch job in window?
Next Topic: XML-RPC

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

Current Time: Wed Oct 08 15:49:03 PDT 2025

Total time taken to generate the page: 0.00566 seconds