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

Home » Public Forums » archive » resizing 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
resizing draw widget [message #10534] Wed, 17 December 1997 00:00 Go to previous message
Cathy Campo is currently offline  Cathy Campo
Messages: 7
Registered: October 1997
Junior Member
i am trying to resize a draw widget. when i originally create the
base and draw widget, i do this

base = widget_base(title='Data', xoffset=xoffset, yoffset=yoffset, $
/column, xsize=x_scroll_size)
draw = widget_draw(base, /scroll, x_scroll_size=x_scroll_size, $
y_scroll_size=y_scroll_size, retain=2, xsize=xsize, ysize=ysize)

when i want to resize the draw widget, i recalculate a new xsize,
ysize, then i do this

; adjust size of drawable area
widget_control, draw, draw_xsize=xsize, draw_ysize=ysize
; adjust viewport size
widget_control, draw, xsize=x_scroll_size, ysize=y_scroll_size
; adjust base size
widget_control, base, size=x_scroll_size

the base is resizing correctly, but the draw widget is staying the
old size. any suggestions?

Cathy Campo
General Atomics
San Diego, CA
campo at gav dot gat dot com
phone (619) 455-3340
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Object-Oriented Programming Question
Next Topic: Mouse and keyboard events in a draw widget

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

Current Time: Fri Oct 10 08:33:49 PDT 2025

Total time taken to generate the page: 0.79813 seconds