cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

How to Create ProUITreeColumns

JY_9919310
4-Participant

How to Create ProUITreeColumns

Hi guys,

I want create a model tree like this post mention.

In this few days study, I can create new nodes in ProUITree object via ProUITreeNodeAdd().

But, when i try to add column, ProUITreeColumnCreate("dialog","mytree","column1",label,PROUITREECOL_LEFT) doesn't add the new column as expected, api return PRO_TK_NO_ERROR, can anyone give me some tip?

 

thank for help in advance.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
JY_9919310
4-Participant
(To:JY_9919310)

Hi All,

After the Author @GerryXu instructor, ProUITreeColumnCreate work as expected.

Write down the solution for everyone who suffers from the error to refer to.

 

Solution: 

Edit .TreeAttributeWindow attribute to True in resource file. so that, the api can work as expected.

p.s. This attribute is not displayed in Creo UI editor and cannot be set by api.

JY_9919310_0-1651806376768.png

 

View solution in original post

1 REPLY 1
JY_9919310
4-Participant
(To:JY_9919310)

Hi All,

After the Author @GerryXu instructor, ProUITreeColumnCreate work as expected.

Write down the solution for everyone who suffers from the error to refer to.

 

Solution: 

Edit .TreeAttributeWindow attribute to True in resource file. so that, the api can work as expected.

p.s. This attribute is not displayed in Creo UI editor and cannot be set by api.

JY_9919310_0-1651806376768.png

 

Top Tags