Book a Demo

Author Topic: Custom Addin: Dock a window  (Read 4081 times)

canderson

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Custom Addin: Dock a window
« on: June 18, 2008, 07:10:14 pm »
Hi,

I'm wondering if it's possible to dock a form (that's part of my addin) in the EA environment/shell.

I'm trying to build a custom report generator.

I'd like to be able to add diagrams from the project tree to a new tree in my window. Once they're in my tree I can then sort them as appropriate before building a document based on my subset.

It doesn't look like this is possible, but I just wanted an expert opinion!

Thanks.

CA.

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Custom Addin: Dock a window
« Reply #1 on: June 18, 2008, 09:58:50 pm »
The online manual says you can wrap your window into an ActiveX control and then use the Repository.AddTab() method.

canderson

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Custom Addin: Dock a window
« Reply #2 on: June 18, 2008, 10:24:50 pm »
I think that's going to add my window/form to the working space though no? (Where you normally draw diagrams).

I was hoping to write a new window I could dock with the toolbox/properties/tagged values windows.

Even so, I think you've given me an alternative so many thanks.

CA.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Custom Addin: Dock a window
« Reply #3 on: June 18, 2008, 11:20:52 pm »
I think what Frank has described is the appropriate way to do just that. My read of the API documentation is that panes must be ActiveX controls - which is why you need a wrapper for C# windows - and that EA supports docking of panes.

Remember to make your add-in components visible to COM, if you've not done so already via project settings.
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Custom Addin: Dock a window
« Reply #4 on: June 19, 2008, 08:48:44 am »
CA is correct, (in my understanding) that function adds a window where you find diagrams.

EA doesn't currently support docked windows from add-ins.