Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic AnchorPoint constructor (Read 1488 times)
BudMan
YaBB Newbies
*
Offline


Credidi me felem vidisse

Posts: 45
Joined: Jul 14th, 2007
AnchorPoint constructor
Mar 23rd, 2010 at 3:43pm
Print Post  
I have been playing around with the FlowCharter sample and tried to change the AnchorPoints of the "Alternative" node so their MarkStyles are rectangles and their color is green. Specifically, I changed the constructor code from this:


New AnchorPattern(New AnchorPoint() _
        { _
         New AnchorPoint(50, 0, True, True, MarkStyle.Circle, defAnch), _
         New AnchorPoint(0, 100, True, True, MarkStyle.Circle, defAnch), _
         New AnchorPoint(50, 100, True, True, MarkStyle.Circle, defAnch), _
         New AnchorPoint(100, 100, True, True, MarkStyle.Circle, defAnch) _
        })

to this:

New AnchorPattern(New AnchorPoint() _
        { _
         New AnchorPoint(50, 0, True, True, MarkStyle.Rectangle, Color.Green), _
         New AnchorPoint(0, 100, True, True, MarkStyle.Rectangle, Color.Green), _
         New AnchorPoint(50, 100, True, True, MarkStyle.Rectangle, Color.Green), _
         New AnchorPoint(100, 100, True, True, MarkStyle.Rectangle, Color.Green) _
        }

However, when I run the program and drag an Alternative shape unto the diagram, it still shows red circles for the AnchorPoints. On the other hand, I see that the AnchorPoints sample progam DOES show various AnchorPoints correctly. I cannot figure out why the code works there but not the FlowCharter app.

I am running trial version 5.3.3 of FlowChart.NET.

Thanks for your help in solving the mystery.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: AnchorPoint constructor
Reply #1 - Mar 23rd, 2010 at 3:57pm
Print Post  
Check the for-each loop in the _flowChart_DragDrop handler Wink I suppose we have added this dialog for changing the points appearance after the first release of the sample; now the handler sets the color from the options, so the colors from the init code do not matter much.
  
Back to top
 
IP Logged
 
BudMan
YaBB Newbies
*
Offline


Credidi me felem vidisse

Posts: 45
Joined: Jul 14th, 2007
Re: AnchorPoint constructor
Reply #2 - Mar 23rd, 2010 at 8:52pm
Print Post  
That worked! Thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint