TGraphLink.CalculateEndPoints

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

TGraphLink.CalculateEndPoints

Postby MeW » February 18th, 2005, 4:42 pm

Code: Select all
TGraphLink.CalculateEndPoints

is a protected method which is virtual and can be overriden. This is very welcome, however if I want to override I have a scoping issue with the private fields which I cannot change:
Code: Select all
    property StartPt: TPoint read fStartPt;
    property EndPt: TPoint read fEndPt;

I can easily change the scope of both fStartPt and fEndPt, but a protected setmethod would be more obvious...
Code: Select all
    property StartPt: TPoint read fStartPt write SetStartPt;
    property EndPt: TPoint read fEndPt write SetEndPt;

Perhaps something to look at for the next version.

The reason is simple, I have a ellipse containing a rectangle, depending on the direction of the link I want it to intersect at the ellipse or at the rectangle.
MeW
Active Member
Active Member
 
Posts: 9
Joined: February 17th, 2005, 6:34 pm
Location: Netherlands

Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 1 guest

cron