Re: Preferences [message #31144 is a reply to message #15073] |
Mon, 10 June 2002 18:57  |
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
|
|
|