Skip to main content
1-Visitor
May 29, 2006
Question

ProUITree widget

  • May 29, 2006
  • 0 replies
  • 419 views
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