Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Uffe on January 22, 2013, 09:11:10 pm

Title: Launch internal web browser from API
Post by: Uffe on January 22, 2013, 09:11:10 pm
Hi!


I'm working on an Add-In for a client, which on double-click on an element launches an external web browser with the URL taken from the element's "file" list (obviating the need to open the properties dialog, selecting the Files tab and launching the browser from there).

My question is this: is it possible to launch EA's internal web browser instead?
I can't find a function for this in the (9.3) API.


Cheers,

/Uffe
Title: Re: Launch internal web browser from API
Post by: Geert Bellekens on January 23, 2013, 06:24:01 pm
I don't think I've ever seen something like that.

Geert
Title: Re: Launch internal web browser from API
Post by: Stefan Bolleininger on January 24, 2013, 08:24:37 pm
Hi,

i used to create some help-section using a webbrowser within my addin with the following steps:

Create an Addin and add an ITabControl-Element to it.
Select a webbrowser-element into the created ITabControl

and than you may define the option when it should be called or initiated.

The URL for the Web-Browser can be opened with:
webBrowser1.Navigate(url);

It is not the EA-webbrowser but it is the visual studio c# toolbox-element.

If the ITabControl is started as type diagram, it perfectly fits into the EA-Diagram-window  ;)

What i like most on this webbrowser: It resolves all JAVA and script related items from the EA-HTML-Report(Which doesn't work on all webbrowsers very well) ;) ;D
And you can configure it -> With navigation bar, without it .......

I  hope this may help you.  

Best regards

Stefan