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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

ProUITree widget

vinaym
1-Newbie

ProUITree widget

Hi all,

Has anyone used ProUITree widget available with Wildfire 3.0?

I am trying to create a Tree structure as shown below.

|-Vertices
| |-Vertex1
| |-Vertex2
|
|-Edges
| |-Edge1
| |-Edge2
|
|-Faces
|-Face1
|-Face2

I am able to add Vertices as the Tree Node with following code.

MyDialogName is the name of the dialog
ModelTree is the Tree widget added to the dialog in .res file.

// Following line returns PRO_TK_NO_ERROR
status = ProUITreeNodeAdd("MyDialogName","ModelTree","Vertices",
L"Vertices",NULL,PRO_UI_TREE);

// Following line returns PRO_TK_GENERAL_ERROR
status = ProUITreeNodeAdd("MyDialogName","ModelTree","Vertex1",
L"Vertex1",NULL,PRO_UI_TREE);

// Following line returns PRO_TK_GENERAL_ERROR
status = ProUITreeNodeAdd("MyDialogName","ModelTree","Faces",
L"Faces",NULL,PRO_UI_TREE);

But any further node addition to the tree results in PRO_TK_GENERAL_ERROR.

This is how my dialog looks like with the above code.



Regards,

Vinay
0 REPLIES 0
Announcements
Business Continuity with Creo: Learn more about it here.

Top Tags