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

Home » Public Forums » archive » Re: widget_control from call_external
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: widget_control from call_external [message #24010 is a reply to message #24009] Thu, 01 March 2001 08:05 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
dominic@work.com (dominic@work.com) writes:

> I have a c/c++ programme that is called from within a
> widget hierachy via call_external.
>
> As the computations made take fairly long, I want to update
> a status bar with a 'Percentage complete' from the C-routine,
> so the user doesn't get upset and thinks the programme died
> on him/her.
>
> How do I go about that???

Well, this will be difficult unless your can call your
C program in "chunks", or in some other way interrupt
it. It might be easier if you just know, in general,
how long it takes. Then you can set a "kitchen timer"
sort of progress indicator. As long as the cake is
baked by the time the timer goes off, no one seems
to care. :-)

You can see several ways to build such a progress
indicator here:

http://www.dfanning.com/tips/show_progress.html

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Variable watch? Yeah, right
Next Topic: HOWTO: Force IDL 2 use quadrants

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

Current Time: Tue Apr 28 03:44:47 PDT 2026

Total time taken to generate the page: 0.63886 seconds