Jan Rothkegel
Jan Rothkegel

Reputation: 760

Getting out of the Add-Ins window

I was able to produce an add-in, which provides two user interfaces. However they are shown as tabs in the Add-Ins window. Earlier I worked with a single control and this one has been shown in its own window.

enter image description here

They both have different GUIDs and are registered COM objects. I initiate like this:

control1 = GuiManager.Repository.AddWindow("Quick Interface Editor", "QuickInterfaceEditor.QuickInterfaceEditorControl") as QuickInterfaceEditorControl;
control2 = GuiManager.Repository.AddWindow("Tagged Values Editor", "TaggedValuesEditor.TaggedValuesEditorControl") as TaggedValuesEditorControl;

Is there a way to bring both tabs to their own windows? Or at least replace the "Add-Ins" title by my add-in's name?

Upvotes: 1

Views: 43

Answers (1)

Geert Bellekens
Geert Bellekens

Reputation: 13784

There are basically three ways to show a window as an add-in

Repository.AddWindow()

This adds an add-in window in the add-ins docked window. If this is the only add-in window that uses this section, than the docked window will get the title from the add-in window. enter image description here

If there are multiple add-ins, the title will be Add-Ins and each add-in will get a tab, like you noticed with your add-ins.
enter image description here

Repository.AddTab()

This adds a window to the main diagram space enter image description here

Form.ShowDialog() or Form.Show()

This allows you to show a model dialog, or regular window on top of EA's GUI enter image description here

Upvotes: 3

Related Questions