Re: open HTTP links from a widget [message #41069] |
Wed, 22 September 2004 17:55 |
Mark Hadfield
Messages: 783 Registered: May 1995
|
Senior Member |
|
|
Benjamin Hornberger wrote:
> Hi all,
>
> I saw that in the IDL demo they have links to the RSI website and other
> places, which open my default system web browser. Does anyone know how
> to do that? I would like a button in the Help menu of a widget program
> that opens the documentation on the web.
In principle, you could work this out by examining the demo source,
which is in
<IDL_DIR>/examples/demo/demosrc
but in practice this is difficult, as the demo system is somewhat
complicated and involves a menu system defined in XML.
But the answer is that they use the ONLINE_HELP command (in
demoObj__define.pro), with the BOOK keyword to define the HTML file.
This only allows access to a local file. To get out into the WWW they
use local HTMl files with redirections, eg see the files in
<IDL_DIR>/examples/demo/demourls
--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
|
|
|