Stefan Member
Joined: 27 Sep 2004 Posts: 49 Location: Netherlands
|
Posted: 24/01/05 16:45 Post subject: |
|
|
Hi,
Something like this should work:
| Code: |
procedure TForm1.SomeProc;
begin
Graph := TSimpleGraph.Create(Form1);
with Graph do begin
Parent := Form1;
Left := 0;
Top := 0;
Width := 400;
Height := 400;
ZoomMax := 1000;
end;
end;
procedure TForm1.SomeOtherProc;
var
r: TRect;
node: TGraphNode;
begin
r := Rect(20, 20, 250, 50);
node := Graph.InsertNode(@r);
node.Text := 'Node text!';
end;
|
Cheers,
Stefan |
|