## Using SimpleGraph and a few questions

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

### Using SimpleGraph and a few questions

Hi there!

I've downloaded yesterday your SimpleGraph component, and I still have a little questions, specifically to the matter of drawing a series of shapes via Delphi code (not using mouse or keys). I'm using Delphi 6, if the tip can help.

Can you tell me how to draw a square and a circle using this component? My develop needs the ability to hit a button, draw a shape in a specific position, draw another and link them using three buttons, one for each process, because my user has a text describing some actions and I have to parse this text in a diagram not touched by the user.

I'll be very grateful to you if you can assist me in this matter.

Regards, and congratulations for the effort of making this great component!
TiammatMX
Member

Posts: 1
Joined: March 8th, 2012, 5:23 pm

### Re: Using SimpleGraph and a few questions

Hi,

Code: Select all
procedure TMainForm.SomeProc;var  r: TRect;  gnA, gnB: TGraphNode;begin  r.Left := 10;  r.Top := 10;  r.Right := 100;  r.Bottom := 90;  gnA := SimpleGraph.InsertNode(r, TRectangularNode);  r.Left := r.Left + r.Right + 20;  gnB := SimpleGraph.InsertNode(r, TEllipticNode);  SimpleGraph.InsertLink(gnA, gnB);end;

Does that help?

Stefan

Stefan
Moderator

Posts: 128
Joined: September 27th, 2004, 9:40 am
Location: Tilburg, The Netherlands

### Who is online

Users browsing this forum: Bing [Bot] and 1 guest