thanks for the answer, is that ok ?
- Code: Select all
var
noderect : Trect ;
AlinkClass : TGraphLink ;
begin
AlinkClass := TGraphLink.Create(SimpleGraph1) ;
SimpleGraph1.InsertNode(noderect ,TRoundRectangularNode) ;
ObjectAtPt1 := FORM1.SimpleGraph1.FindObjectAt(10, 10);
ObjectAtPt2 := FORM1.SimpleGraph1.FindObjectAt(20, 20);
as I did not found how to make Objects, I was wondering if
- Code: Select all
function MakeSquare(const Center: TPoint; Radius: Integer): TRect;
function MakeRect(const Corner1, Corner2: TPoint): TRect;
is this ok for that automatic cration ? if yes
I did not succeed to create it correctly
//=========mod edit: merge================
what I meant by correctly is
- Code: Select all
procedure TForm1.BitBtn1Click(Sender: TObject);
var
noderect, carre : Trect ;
Centre : Tpoint ;
begin
AlinkClass := TGraphLink.Create(SimpleGraph1) ;
Centre.X := 10 ;
Centre.Y := 10 ;
carre := MakeSquare(Centre, 2);
end ;
does not show anything;
elsewhere insertnode in my previous post code was giving "something" because of scrollbars apearing, but same : nowhere to see any shape ...