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

Home » Public Forums » archive » Re: updating a value in a window
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: updating a value in a window [message #42076] Thu, 16 December 2004 15:21 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Francois L. writes:

> I have a loop in which computation is performed. I want to display the
> progress.
> ------------------------------------------------------------ ---------------------
> tlb = Widget_Base(Column=1, TLB_Frame_Attr=1,title='Work in progress...')
> text1 = widget_text(tlb, value='...... Percent completed ......',xsize=40)
> x = 25
> x = string(x) +' %'
> text2 = widget_text(tlb, value=x)
> CenterTLB, tlb
> Widget_Control, tlb, /Realize
> ------------------------------------------------------------ ---------------------
>
> How can I update the x value in the text2 widget while keeping the same top
> level base ?
> I know I should not call widget_control all over the loop but...

You could have a look at my ProgressBar code and see
how it is done there:

http://www.dfanning.com/programs/progressbar__define.pro

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Orb-Object IDL5.4 vs IDL6.0
Next Topic: updating a value in a window

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

Current Time: Sat Oct 11 15:40:21 PDT 2025

Total time taken to generate the page: 0.95894 seconds