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

Home » Public Forums » archive » Re: IDL app launched from an icon
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDL app launched from an icon [message #13007 is a reply to message #13005] Sat, 26 September 1998 00:00 Go to previous messageGo to previous message
krieger is currently offline  krieger
Messages: 7
Registered: June 1997
Junior Member
In article <6uh076$7oc@hacgate2.hac.com>, "Charlie Solomon" <crsolomon@west.raytheon.com> wrote:
> Can someone help with this?...

> do you know of a way to allow a user to simply double click on an icon on
> the desktop, which compiles and runs an idl procedure automatically without
> any further effort by the user? in other words, i'd like to make an idl
> procedure act as a separate application. i searched through the help pages,
> but didn't find what i was looking for. thanks in advance for any advice!

For Windows, create a link to IDL on your desktop (simply copy the IDL
icon from the start menu folder to the desktop folder).

Write a short IDL script "startapp" to start your program:

==================

cd, "appdir" ; needed because IDL 5.1 doesn't recognize the working
; directory in the link property sheet anymore
restore, "myapp.sav"

myapp ; the main routine of your application

exit

==================

In the link property sheet modify the "Target" slot, e.g.:

C:\Rsi\Idl51\Idlde.exe @appdir\startapp

In the "startapp" script you could also, instead of restoring the
precompiled application, directly run the compilation itself.

Simply replace the line with the restore command by

compile myapp1.pro
compile myapp2.pro
etc. pp.

Hope that helps.

Karl

--
Disclaimer: I do not speak for the IPP despite my mouth is big enough.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Tab between fields
Next Topic: Re: Contributed Source: CW_selectaxes (Corrected and working!)

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

Current Time: Fri Oct 10 15:22:30 PDT 2025

Total time taken to generate the page: 1.27952 seconds