| Re: Launching Another App. from IDL [message #40398] |
Thu, 05 August 2004 14:34  |
Rick Towler
Messages: 821 Registered: August 1998
|
Senior Member |
|
|
M. Katz wrote:
> I'm wondering if on Windows there's an easy IDL command that is
> capable of launching an external application. What I'd like to do is
> to have an IDL widget button be able to launch Internet Explorer (or a
> better browser) and direct it to a specific URL. There must be some
> kind of ActiveX thing that can do this, no? I don't want to have to
> write a big external library and all that hooey.
>
> Thanks!
> M. Katz
You can use the WIDGET_ACTIVEX() function and you could use SPAWN
(iexplore "insert your url here"). The issue you'll run into is
determining if an alternate browser is available. To be safe I would
stick with IE but you could write a procedure which would look for
Opera, Moz, Firefox in at least their default locations.
When WIDGET_ACTIVEX was born, I wrote a windows only HTML help widget
which demonstrates the use of WIDGET_ACTIVEX. It is simply an IDL
widget window with IE embedded in it (no controls, although right clicks
in the window bring up the IE context menu). I don't know how specific
the COM ID is so I can't guarantee that this will work with all versions
of IE.
You can pick up Dialog_WinHTMLHelp here:
http://www.acoustics.washington.edu/~towler/programs/directI nputDLM.zip
-Rick
|
|
|
|