DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   Favorites   Watched Topics     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TGraphLink.CalculateEndPoints

 
   Reply to topic       DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
MeW
Member


Joined: 17 Feb 2005
Posts: 6
Location: Netherlands

PostPosted: 18/02/05 16:42    Post subject: TGraphLink.CalculateEndPoints Reply with quote

Code:
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:
    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:
    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.
Back to top
View user's profile
Display posts from previous:   
   Reply to topic       DELPHI AREA Forum Index -> DELPHI AREA's Products All times are GMT
Page 1 of 1

Add to favorites

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group