Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Arrows text are overlapped (Read 5432 times)
unisnk
Junior Member
**
Offline


D'Oh!

Posts: 59
Joined: Sep 3rd, 2008
Arrows text are overlapped
Oct 10th, 2008 at 11:51am
Print Post  
hi,

there is a problem regarding the labels on the arrows

I've two boxes connected with two arrows, each arrow has its own label. Now, as you can see on the picture the labels are overlapping (the two labels are "2" and "5")



I need to maintain the arrows set to dynamic, so there is no possible to split them. The best solution can be to move the label from half of arrow to another location (33% of arrow length probably is the best)

Is there one property that permits me to do so?

Thank you in advance
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrows text are overlapped
Reply #1 - Oct 13th, 2008 at 7:27am
Print Post  
There isn't such property, I suppose we'll have to add a new one 8)
  
Back to top
 
IP Logged
 
unisnk
Junior Member
**
Offline


D'Oh!

Posts: 59
Joined: Sep 3rd, 2008
Re: Arrows text are overlapped
Reply #2 - Oct 13th, 2008 at 9:10am
Print Post  
how long can be the adding of this new feature? Shall I open a new topic in "Feature suggestions" section?

thanks!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrows text are overlapped
Reply #3 - Oct 13th, 2008 at 10:52am
Print Post  
We are busy with several releases right now, but will try to add this by the end of this month.

Stoyan
  
Back to top
 
IP Logged
 
unisnk
Junior Member
**
Offline


D'Oh!

Posts: 59
Joined: Sep 3rd, 2008
Re: Arrows text are overlapped
Reply #4 - Oct 13th, 2008 at 12:08pm
Print Post  
it would be perfect at the end of month. thanks!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrows text are overlapped
Reply #5 - Oct 31st, 2008 at 9:20am
Print Post  
Hi,

Look in the PM page for a download link. Now there is a SetTextPosition(segment, offset) method in the Arrow class, which lets you specify to which segment and at what offset from the segment beginning the label should be drawn. The method currently works only with the atsCenter text style.

For example, arrow.SetTextPosition(0,  20) specifies that the arrow's text should be drawn above the 20th pixel of the first segment.

You could also use negative values, e.g. -1 is the last segment, -2 is the second-to-last segment, etc. Negative offset means that the offset is from the segment end instead of the segment beginning.

This version might not be very stable; do not use it in production environment.

Stoyan
  
Back to top
 
IP Logged
 
unisnk
Junior Member
**
Offline


D'Oh!

Posts: 59
Joined: Sep 3rd, 2008
Re: Arrows text are overlapped
Reply #6 - Nov 10th, 2008 at 2:54pm
Print Post  
thank you, sorry for late reply. We're going to test it.

Will this feature be added on next stable version? When it will be available?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrows text are overlapped
Reply #7 - Nov 11th, 2008 at 9:12am
Print Post  
Yes, it will be available in version 4.2, for which we are starting beta tests in a couple of days.

Stoyan
  
Back to top
 
IP Logged
 
unisnk
Junior Member
**
Offline


D'Oh!

Posts: 59
Joined: Sep 3rd, 2008
Re: Arrows text are overlapped
Reply #8 - Nov 11th, 2008 at 2:05pm
Print Post  
Great!  8)
  
Back to top
 
IP Logged
 
unisnk
Junior Member
**
Offline


D'Oh!

Posts: 59
Joined: Sep 3rd, 2008
Re: Arrows text are overlapped
Reply #9 - Dec 11th, 2008 at 11:25am
Print Post  
Feature tested on stable version, it works well.

We only use arrows with one segment and I use the following code to draw the label near to the end of the arrow.
Code
Select All
ArrowRef.SetTextPosition(0,-15); 



This is the result:


thanks, keep up the good work!  8)
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint