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

Home » Public Forums » archive » Re: 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
Re: Preferences file for/from a runtime application [message #15064] Wed, 14 April 1999 00:00
mallors is currently offline  mallors
Messages: 76
Registered: November 1997
Member
In article <01be8685$d248a0a0$5c0c66a1@eusunw0246.rec.bp.com>,
"Robert King" <kingrj2@bp.com> writes:
> 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,
>

I have a Preferences object that allows you do use an
ASCII preferences file of the format

KEY = value

The object includes a widget to allow interactive
editting of user preferences. For more info, check

http://cspar.uah.edu/~mallozzir/software/idl/idl.html





--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
Robert S. Mallozzi 256-544-0887
Mail Code ES 84
Work: http://www.batse.msfc.nasa.gov/ Marshall Space Flight Center
Play: http://cspar.uah.edu/~mallozzir/ Huntsville, AL 35812
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
Re: Preferences file for/from a runtime application [message #15071 is a reply to message #15064] Wed, 14 April 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Robert King (kingrj2@bp.com) writes:

> 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?...

I'm quite sure this is not true. There is no restriction
as far as I know that runtime programs can't create save
files (as long as you are doing nothing but saving variables).
In fact, I have a program here in front of me for one of our
clients that does exactly that on a Windows NT machine.
I don't know off hand if this is a limitation on other
architectures.

Runtime licenses can also write files, so I don't see
any reason you can't easily implement a "preferences
editor", which might, for example, tell the runtime
application where to find the appropriate save file.

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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL- readf fails from CD
Next Topic: IDL- readf fails from CD

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

Current Time: Sat Oct 11 03:47:01 PDT 2025

Total time taken to generate the page: 3.36542 seconds