Sort project browser tree view programmatically

时光总嘲笑我的痴心妄想 提交于 2019-12-23 06:35:08

问题


I need to know how to set the order of elements shown in EA's project browser programmatically (in order to mimic the green arrows).


回答1:


The tree view can not be sorted freely. EA puts a couple of constraints on the sorting. So diagrams, packages and a couple of other elements appear always on top and in groups. This is hard coded.

Use Element.TreePos to change the order where appropriate to simulate a manual order.

FWIW: Features have another queer behavior sometimes. You might need to uncheck the following in Tools/Options:



来源:https://stackoverflow.com/questions/43133835/sort-project-browser-tree-view-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!