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

Home » Public Forums » archive » suggestions?
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
suggestions? [message #30522] Mon, 06 May 2002 02:22 Go to next message
Stu is currently offline  Stu
Messages: 5
Registered: March 1999
Junior Member
Is there any way of getting "Print" statements to be printed in a
certain window? What I'd like to do is have a message window, then have
the routines I've written write any error/warning/information messages
to this common window. Any ideas how this could be accomplished? Some
sort of widget program maybe?

cheers,
S
Re: suggestions? [message #30602 is a reply to message #30522] Mon, 06 May 2002 20:12 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Stu (stu.c@freeuk.com) writes:

> Yes, the idea is to have more than one routine write messages (not just error
> messages) to a common window - which could be closed if you really don't want
> to those errors. Widgets it is then.

No, no. *Object* widgets!

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: suggestions? [message #30604 is a reply to message #30522] Mon, 06 May 2002 16:41 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
I thought that the log window does exactly that. I may be wrong of
course. And objectified output would be a lot more fun indeed :-)
Cheers,
Pavel

Stu wrote:
>
> Yes, the idea is to have more than one routine write messages (not just error
> messages) to a common window - which could be closed if you really don't want
> to those errors. Widgets it is then.
>
> cheers,
> S
Re: suggestions? [message #30605 is a reply to message #30522] Mon, 06 May 2002 15:15 Go to previous message
Stu is currently offline  Stu
Messages: 5
Registered: March 1999
Junior Member
Yes, the idea is to have more than one routine write messages (not just error
messages) to a common window - which could be closed if you really don't want
to those errors. Widgets it is then.

cheers,
S
Re: suggestions? [message #30614 is a reply to message #30522] Mon, 06 May 2002 08:19 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ted Cary (tedcary@yahoo.com) writes:

> DIALOG_MESSAGE or David Fanning's ERROR_MESSAGE are good for per incident
> error reporting, but it sounds like Stu wants to generate an error log in a
> persistent "message window," not just show the error message in a modal
> window and have it disappear. Stu, if you're truly not satisfied with
> reporting your errors to the output log using PRINT or MESSAGE, then you are
> correct that you will have to learn widget programming. Buy Fanning's book.
> A text widget widget will do what you want.

A text widget will do what he wants, but it would
be even better if that text widget was attached
to an object and could be updated with a SetMessage
method. :-)

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: suggestions? [message #30616 is a reply to message #30522] Mon, 06 May 2002 06:32 Go to previous message
Ted Cary is currently offline  Ted Cary
Messages: 53
Registered: October 2001
Member
DIALOG_MESSAGE or David Fanning's ERROR_MESSAGE are good for per incident
error reporting, but it sounds like Stu wants to generate an error log in a
persistent "message window," not just show the error message in a modal
window and have it disappear. Stu, if you're truly not satisfied with
reporting your errors to the output log using PRINT or MESSAGE, then you are
correct that you will have to learn widget programming. Buy Fanning's book.
A text widget widget will do what you want.

Are you sure you want to scare users with a record of errors? Many of us
even turn off some of the default error reporting to the output log.

Good luck,

TC

"Reimar Bauer" <r.bauer@fz-juelich.de> wrote in message
news:3CD68967.7905BD1E@fz-juelich.de...
> Stu wrote:
>>
>> Is there any way of getting "Print" statements to be printed in a
>> certain window? What I'd like to do is have a message window, then have
>> the routines I've written write any error/warning/information messages
>> to this common window. Any ideas how this could be accomplished? Some
>> sort of widget program maybe?
>>
>> cheers,
>> S
>
> What
> 's with dialog_message?
Re: suggestions? [message #30617 is a reply to message #30522] Mon, 06 May 2002 06:47 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Stu wrote:
>
> Is there any way of getting "Print" statements to be printed in a
> certain window? What I'd like to do is have a message window, then have
> the routines I've written write any error/warning/information messages
> to this common window. Any ideas how this could be accomplished? Some
> sort of widget program maybe?
>
> cheers,
> S

What
's with dialog_message?



Online Help:

The DIALOG_MESSAGE function creates a modal (blocking) dialog box that
can be used to display information for the user. The dialog must be
dismissed, by clicking on one of its option buttons, before execution of
the widget program can continue. ...


Reimar

--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml
============================================================ =======
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDLgrAxis: how to manipulate tickvalues? and to prevent strange stretching?
Next Topic: Mac OS X

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

Current Time: Wed Oct 08 17:36:59 PDT 2025

Total time taken to generate the page: 0.00690 seconds