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

Home » Public Forums » archive » Preferences file for/from a runtime application
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
Preferences file for/from a runtime application [message #15073] Wed, 14 April 1999 00:00 Go to next message
Robert King is currently offline  Robert King
Messages: 9
Registered: March 1999
Junior Member
Hi All,

I'm writing a couple of programs that are to be distributed with runtime
licences. I would like to know whether it is possible to create a
preferences file so that the user can have the program set up in the way
that they want.

I know that I can easily create a defaults file, but what I want is for
*THEM* to be able to *edit* it from the runtime. I know that the runtime
distribution doesn't allow you to create .sav files so I don't really hold
out much hope!.. any ideas?...

Thanks for the help,

Robert



PS. Runtime programs seem to be one of the (very) few places where using
common blocks doesn't reduce the usefulness of the program :-) However,
I wouldn't dream of EVER using a GOTO if I don't absolutely have to...
Re: Preferences [message #31144 is a reply to message #15073] Mon, 10 June 2002 18:57 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Niel Malan writes:

> I often find my self in need of a file that contains information specific to a user or application, such as axis settings, or
> file locations, stuff that needs to be adjustable, but mostly stays the same. Usually I cobble together a few functions and a
> text file with some kind of format.
>
> I've had a look on the web, but could not find anything specific enough. This might be because I use the wrong search terms.
>
> Is there a IDL function library somewhere that provides a generalised 'preferences' or options system?
>
> Does anybody else have the same need?

I often have the need, but I do the same as you:
cobble something together. I think it would be
almost impossible to write a "generalized"
preferences system, although I'm sure if you
gave it a try you would be using an object of
some sort. :-)

Objects are a terrific way to keep track of the
current "state" of something. They are used, for
example, in FSC_PSConfig to keep track to the
current state of the PostScript device and in MPI_Plot
to keep track of current line plot settings.

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: speed up the display on Linux
Next Topic: Viewer for Maximum Intensity Projection images

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

Current Time: Wed Oct 08 17:16:15 PDT 2025

Total time taken to generate the page: 0.00551 seconds