Board index » delphi » I want to create a graphical tree as the binary tree

I want to create a graphical tree as the binary tree

 Now a days i have problem with creating application Similar to
 (MS Organization Chart).

 As this module has many sections like

  - Data Structure to store each node's data
  - Adjusting the location of node in case of parent that have many
childrens
  - Joining the nodes with lines according to the relation between nodes.
  - Selecting a node by a mouse click & the program will add the nodes
    automatically, by Autocalc the places

 I have no problem , in case of adding nodes in order, but the problem
 appears  when i want to add a node in the middle of this chart.

 I thought about many structures, but they are not so powerfull, as i
search
 for a certain logic that lets me  able to manage all the nodes to adjust
 new places for each node to free space for the comming Node

 I ask if i can get an Algorithm ,component or OCX  that let it easy for
 me to create  this chart

 

Re:I want to create a graphical tree as the binary tree


Using a TImage you could paint the whole structure onto.
The OnMousedown would have to be used to change the graph,
then repaint it.

Rene

Quote
Mike Samir El-Gohary wrote:

>  Now a days i have problem with creating application Similar to
>  (MS Organization Chart).

>  As this module has many sections like

>   - Data Structure to store each node's data
>   - Adjusting the location of node in case of parent that have many
> childrens
>   - Joining the nodes with lines according to the relation between nodes.
>   - Selecting a node by a mouse click & the program will add the nodes
>     automatically, by Autocalc the places

>  I have no problem , in case of adding nodes in order, but the problem
>  appears  when i want to add a node in the middle of this chart.

>  I thought about many structures, but they are not so powerfull, as i
> search
>  for a certain logic that lets me  able to manage all the nodes to adjust
>  new places for each node to free space for the comming Node

>  I ask if i can get an Algorithm ,component or OCX  that let it easy for
>  me to create  this chart

Other Threads