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

Home » Public Forums » archive » IDL widget_label questions
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
IDL widget_label questions [message #989] Wed, 14 April 1993 23:44
mayor is currently offline  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
============================================================ ====================
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: printing to postscript with PV_WAVE
Next Topic: Re: plotting routine to handle missing data

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

Current Time: Wed Oct 08 19:51:29 PDT 2025

Total time taken to generate the page: 0.00481 seconds