Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagram link alignment issue in combobox (Read 2232 times)
Niranjan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Nov 19th, 2009
Diagram link alignment issue in combobox
Apr 17th, 2010 at 8:54am
Print Post  
Hi there,

I am currently implementing a functionality using which user can provide Diagram links style such as color, arrow, size etc.

So I am filling a dropdownlist with all line style, and with some sizes so that user can choose from it.

But in the dropdownlist, Diagram links are not properly display when I select any item from dropdownlist....

Here is the attached source code files and screen shot...
https://cid-053f08c0f48240cc.skydrive.live.com/self.aspx/.Public/DiagramLink%20A
lignment%20Issue.zip

Please help me to resolve these issue.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagram link alignment issue in combobox
Reply #1 - Apr 18th, 2010 at 7:19am
Print Post  
Try assigning coordinates larger than 1 to the link's points on these lines in your CreateCapLine method:

line.StartPoint = new Point(1, 1);
line.EndPoint = new Point(80, 1);
  
Back to top
 
IP Logged
 
Niranjan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Nov 19th, 2009
Re: Diagram link alignment issue in combobox
Reply #2 - Apr 19th, 2010 at 6:25am
Print Post  
Hi there,

I have change the as you suggested:
line.StartPoint = new Point(5, 5);
line.EndPoint = new Point(80, 5);

but still the problem exist.

Please help me to solve the issue.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagram link alignment issue in combobox
Reply #3 - Apr 19th, 2010 at 8:22am
Print Post  
The point coordinates define the link position through the Left and Top attached properties of Canvas, so try placing each link inside a Canvas object there. Either modify the item container template to include a canvas, or make the items themselves canvases where each canvas contains a link.

Alternatively you might try offsetting the links through the Margins property.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint