IrfanRaza
IrfanRaza

Reputation: 3058

Need Binary Tree Control in VB6

I just need to ask, does anyone have link to free resources where I could get the control to draw a binary tree using VB6. Note that I am not saying regarding TreeView control in VB6.

I need a control to draw a binary tree like

1

/\

2 3

/\ /\

4 5 6 7

Upvotes: 0

Views: 777

Answers (1)

ConcernedOfTunbridgeWells
ConcernedOfTunbridgeWells

Reputation: 66662

There is a COM API for graphviz, which is a graph visualisation tool that can render to a bitmap file. The COM API can be used to invoke graphviz to render graphs and is accessible from VB (or any COM aware langauge). You create a file with a description of the graph (in this instance a tree) in a textual format called 'dot' and write it out to a temporary file. Graphviz then renders the file. You can render to a bitmap file and display the file in an image viewer control. I've actually seen this done in practice and it works quite well.

Upvotes: 1

Related Questions