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

Home » Public Forums » archive » Re: Scrolling in draw widgets - newbie's question
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: Scrolling in draw widgets - newbie's question [message #31677 is a reply to message #31676] Tue, 13 August 2002 07:24 Go to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
Evgeny Turchin wrote:
>
> Hello, All !
> Here's the text of my program:
>
> base = WIDGET_BASE(XSIZE=650, YSIZE=400)
> draw1 = WIDGET_DRAW(base, XSIZE = 550, X_SCROLL_SIZE=200, YSIZE = 550,
> Y_SCROLL_SIZE=200, XOFFSET=5, /APP_SCROLL)
> WIDGET_CONTROL, /REALIZE, base
> WIDGET_CONTROL, draw1, GET_VALUE = index
> WSET, index
> ImageIsRead=DIALOG_READ_IMAGE(FILE=FileName, FILTER_TYPE='.tif, .tiff', $
> IMAGE=PhotoArray)
> TVSCL, PhotoArray
>
> The image is successfuly loaded in the viewport but the scrolling does not
> work. Does anybody know
> how to solve the problem and create the widget where scrolling is possible
> in graphic viewport?
> I'm using IDL 5.4 for Win32.

Try this instead:

base = widget_base()
draw = widget_draw(base, xsize=1024, ysize=1024, $
x_scroll_size=512, y_scroll_size=512)
widget_control, base, /realize
plot, indgen(10)

Also see the SWINDOW procedure:

http://www.astro.washington.edu/deutsch-bin/idllibsrch?keywo rd=swindow

Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
[Message index]
 
Read Message
Read Message
Previous Topic: Re: dataminer - where to start
Next Topic: Re: Return the name of the last (newest) file ?

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

Current Time: Fri Oct 10 13:40:10 PDT 2025

Total time taken to generate the page: 0.24262 seconds