Book a Demo

Author Topic: UserControl treeview add EA Elements similiar to project browser  (Read 4174 times)

Ceronimo

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Hi,
i have added with addtab() my own user control. Everything works fine and i can use all possibilities of the Windows forms.
Now i want create a  tree similiar to the Project tree, but iwant to use it as a library where i can drop elements on diagrams.

It shouls look the Project Tree

f.e. Lib contains class and component.

later i want to use it for my own modified elements.

My Problem is:  How can i add them to the TreeView in the User Control ?
 

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: UserControl treeview add EA Elements similiar to project browser
« Reply #1 on: April 01, 2016, 12:23:41 am »
Hi,

drag and drop isn't an easy task. There are some information in this forum. Nothing enjoyable as far as I know.

You can go Geerts way to insert every touched element in your view (see Navigator, Code is also available, good source).

You may select a package in EA and say something like move to Addin. Then your Addin goes recursively through the packages and integrate it into your view.

Of course you can also scan the whole model to have your own Tree View.

Regarding Modified Element: Have a look on Geerts approach.

With the EA API and the callbacks a lot is possible.

Regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Ceronimo

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: UserControl treeview add EA Elements similiar to project browser
« Reply #2 on: April 04, 2016, 04:42:37 pm »
thanks for the info