Auto expand treeView

Hello,

 

Is it possible to expand a treeView automatically when the user starts the script?

 

Thank you!

 

Janos Murai


janos.murai - Mon Apr 04 08:33:30 EDT 2016

Re: Auto expand treeView
DOORSHAM - Fri Apr 08 04:14:02 EDT 2016

There is a set focus perm, you might give that a try

Re: Auto expand treeView
janos.murai - Mon Apr 11 06:01:35 EDT 2016

DOORSHAM - Fri Apr 08 04:14:02 EDT 2016

There is a set focus perm, you might give that a try

Unfortunately I can't set the focus to an element in a treeview, only to the treeview itself.

Thanks for the idea!

 

Re: Auto expand treeView
janos.murai - Mon Apr 11 06:51:44 EDT 2016

janos.murai - Mon Apr 11 06:01:35 EDT 2016

Unfortunately I can't set the focus to an element in a treeview, only to the treeview itself.

Thanks for the idea!

 

There must be a solution though...

If I run the built in "Analysis -> Traceability Explorer", it starts with an expanded root.

Re: Auto expand treeView
DOORSHAM - Mon Apr 11 07:45:54 EDT 2016

janos.murai - Mon Apr 11 06:51:44 EDT 2016

There must be a solution though...

If I run the built in "Analysis -> Traceability Explorer", it starts with an expanded root.

look at set function  example

string x = "Some value"

dbeTree = treeView(dlgEx, 0, INITIALWIDTH, INITIALHEIGHT)
set(dbeTree, string x)

Re: Auto expand treeView
janos.murai - Mon Apr 11 08:55:44 EDT 2016

DOORSHAM - Mon Apr 11 07:45:54 EDT 2016

look at set function  example

string x = "Some value"

dbeTree = treeView(dlgEx, 0, INITIALWIDTH, INITIALHEIGHT)
set(dbeTree, string x)

Thank you DOORSHAM, it works perfectly!