Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: BuddyRobbins_Linquest on June 15, 2019, 12:17:46 am

Title: How do I get my ActiveX control
Post by: BuddyRobbins_Linquest on June 15, 2019, 12:17:46 am
I had to create a custom UI for Sparx.  The recommended method is to use an ActiveX control and call the Repository.AddTab() method.
I am limited because adding new software, to include ActiveX controls, is strictly forbidden.
I decided to use a previously installed web-browser control, and populated the document with my web-page UI.

Since the scripting doesn't handle event-handlers, I decided to fire another script to extract the data from the tab/web-browser/web page.
The problem is, while I can call Repository.IsTabActive() or Repository.ActivateTab(), I can't find the call that will return the tab, or specifically, the activeX web browser control.

Any ideas out there?

Thanks in advance,
-Buddy Robbins
Title: Re: How do I get my ActiveX control
Post by: Geert Bellekens on June 15, 2019, 01:48:03 am
It's the AddTab() or AddWindow() method that returns the ActiveX component.

I don' think there's another way to get it.

Geert