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

Home » Public Forums » archive » Re: Calling Help Files
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: Calling Help Files [message #10769 is a reply to message #10739] Sat, 17 January 1998 00:00 Go to previous messageGo to previous message
rivers is currently offline  rivers
Messages: 228
Registered: March 1991
Senior Member
In article <01bd2281$29a2c2a0$256af781@kat37t.ia.kp.dlr.de>, "Kerstin Voigt" <voigt@dlr.de> writes:
> Hi,
>
> does anybody know, how I can call a self created help file from within IDL
> 5.0?
> They have the standard Microsoft *.hlp-format (PC environment).

If you have a standard Microsoft .hlp file then it is very easy to call it
from within IDL. Do it as follows:

IDL> spawn, "start my_help_file.hlp"

This may look strange, so let me explain how it works. The "start" command
means that your help will run as a separate process, so the IDL "spawn" command
will return immediately. The fact that you are "starting" a file, rather than
a program, takes advantage of the Windows file type/application association
feature. When you "start" a .hlp file it automatically runs whatever
application is associated with .hlp files. If your Windows system is
configured correctly this will work fine.

Of course, this also works for other file types, for example "http".
The following IDL command will start your default browser (e.g. Netscape or
Internet Explorer, depending upon how you have set things up on your system)
and display RSI's home page:

IDL> spawn, "start http://www.rsinc.com"

The nice thing about this is that it will start your browser if it is not
already running, but if it is already running it will simply display this new
URL. I find this a very convenient way to display help information, e.g.

IDL> spawn, "start http://www.mysite.edu/IDL/my_help_file#my_topic"

Note that some Windows systems I have seen do not have a default browser
correctly configured. Internet Explorer offers an option to let you make it
your default browser. If you select this it will configure things correctly.
If you want to use Netscape, and it is not configured correctly, go into the
NT Explorer View/Folder Options/File Types menu and select "URL Hypertext
Transfer Protocol". Select Edit/Open/Edit, set "Application to use ... "
to be the full path to Netscape, select "Use DDE" and "DDE Message"="%1"
Application=Netscape, Topic=WWW_OpenURL.

Cheers,
Mark

____________________________________________________________
Mark Rivers (773) 702-2279 (office)
CARS (773) 702-9951 (secretary)
Univ. of Chicago (773) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars.uchicago.edu (e-mail)

or:
Argonne National Laboratory (630) 252-0422 (office)
Building 434A (630) 252-0405 (lab)
9700 South Cass Avenue (630) 252-1713 (beamline)
Argonne, IL 60439 (630) 252-0443 (FAX)
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Segmentation Fault
Next Topic: Re: Maximum entropy filtering

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

Current Time: Sat Oct 11 21:37:48 PDT 2025

Total time taken to generate the page: 2.87711 seconds