IDL widget_label questions [message #989] |
Wed, 14 April 1993 23:44 |
mayor
Messages: 9 Registered: May 1993
|
Junior Member |
|
|
I'd like to use the widget_label in order to display the status of my
program to the user as it's executing by just putting little one-liners
up in it such as reading, calculating, writing, etc. Here's an example
of what I mean:
pro test
base=widget_base(title='PROGRAM STATUS')
widget_control,base,/realize
w1=widget_label(base,value='LOADING...')
widget_control,w1,/realize
; code that does the loading goes here
w1=widget_label(base,value='CALCULATING...')
widget_control,w1,/realize
; code that does the calculating goes here
widget_control,base,/destroy
retall
end
I have two questions:
1) How do I clear the old text out of the widget_label so the
new text doesn't overwrite it?
2) How do I control the size of this widget? xsize and ysize
keywords don't seem to have any effect.
3) Is this the most efficient way to accomplish what I'm after?
(Direct reply to MAYOR@VAXINE.LARC.NASA.GOV would be appreciated
as I don't check the BB regularly. Thanks.)
============================================================ ====================
Shane D. Mayor, Lidar Applications Group, NASA Langley Research Center,
Mail Stop 401A, Hampton, Virginia 23681-0001
Internet: MAYOR@VAXINE.LARC.NASA.GOV Phone: 804-864-7598 Fax: 804-864-7790
============================================================ ====================
|
|
|