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

Home » Public Forums » archive » Re: Status Window
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
Re: Status Window [message #40518] Fri, 13 August 2004 17:45
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
Lloyd Watkin wrote:

> Hi all,
>
> For my phd I'm updating some old f60 code to idl. Something I've been
> looking about for information on is how I can have a window where I
> can post status messages.
>
> In other words I'd like to divert all my print statments from the
> output log window to a window. This is because I hope to distribute
> the code with the IDL VM to other users when it's complete/nearly
> complete to see what features people would like added/improved.
>
> Any ideas on how I'd go about this. Preferrably I'd like to have
> something where I could use commands similar to:
>
> statuswindow, "Calculations Starting", /newline
> statuswindow, /resetwindow
>
> etc, and obviously I'd need it to remain "on top". If anyone could
> pass on any advice or point me in the right direction I would be very
> grateful.

I wrote something alone these lines when porting a console only IDL
program to the VM. It is basically a drop in replacement for PRINT with
some object setup and cleanup that you need to handle at the beginning
and end of program execution.

This is the spot where I would put the link to it but I'm just finishing
up a big server migration and all of our user webpages are offline. If
you are interested I can send you the file directly.

-Rick
Re: Status Window [message #40527 is a reply to message #40518] Fri, 13 August 2004 07:35 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Lloyd Watkin writes:

> For my phd I'm updating some old f60 code to idl. Something I've been
> looking about for information on is how I can have a window where I
> can post status messages.
>
> In other words I'd like to divert all my print statments from the
> output log window to a window. This is because I hope to distribute
> the code with the IDL VM to other users when it's complete/nearly
> complete to see what features people would like added/improved.
>
> Any ideas on how I'd go about this. Preferrably I'd like to have
> something where I could use commands similar to:
>
> statuswindow, "Calculations Starting", /newline
> statuswindow, /resetwindow
>
> etc, and obviously I'd need it to remain "on top". If anyone could
> pass on any advice or point me in the right direction I would be very
> grateful.

Well, if you changed your ideal commands to these:

statuswindow -> Newline, 'Calculations Starting'
statuswindow -> Reset

You might have a chance of making some progress. :-)

I would write this status window thing as an object-widget.
(Another way of thinking of this is a compound widget,
written as an object.) Then you could write it once
and use it in any of your programs. I have such a
thing in my Catalyst Library, and it works great.

Probably won't be able to write this code in the
GUI Builder, though. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL with SRTM/hgt data
Next Topic: Re: IDL with SRTM/hgt data

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

Current Time: Fri Oct 10 03:40:24 PDT 2025

Total time taken to generate the page: 0.48312 seconds