Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic [Resolved] DragDrop an arrow object ? (Read 2091 times)
belfaigore
YaBB Newbies
*
Offline


Life is so wonderfull

Posts: 19
Joined: Apr 11th, 2007
[Resolved] DragDrop an arrow object ?
Apr 12th, 2007 at 8:31am
Print Post  
Hi,

I have an explorer object of link, and I would like user to be able to drag and drop an arrow and only after set the Start/End connection.

Dim MyArrow As New Arrow(MyFlowChart)
MyFlowChart.Add(MyArrow)

When I try this code, nothing append on my flowchart
« Last Edit: Apr 12th, 2007 at 10:52am by belfaigore »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DragDrop an arrow object ?
Reply #1 - Apr 12th, 2007 at 8:41am
Print Post  
Hi,

Again you might have to use "new DummyNode()" as arrow's origin and destination, or otherwise the control won't display the arrow. Or call the FlowChart.CreateArrow(PointF, PointF) method which will create the nodes for you.

Stoyan
  
Back to top
 
IP Logged
 
belfaigore
YaBB Newbies
*
Offline


Life is so wonderfull

Posts: 19
Joined: Apr 11th, 2007
Re: DragDrop an arrow object ?
Reply #2 - Apr 12th, 2007 at 10:07am
Print Post  
I try create my arrow with DummyNode like that :

Dim MyArrow as new Arrow(MyArrowPrototype, New DummyNode(MyFlowChart),New DummyNode(MyFlowChart))

But it's the same, nothing append on the flowchart
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DragDrop an arrow object ?
Reply #3 - Apr 12th, 2007 at 10:12am
Print Post  
Have you tried setting the Arrow.ControlPoints coordinates to ones in the visible area? The default might be (0,0) for all points, and you won't see the arrow then.

Stoyan
  
Back to top
 
IP Logged
 
belfaigore
YaBB Newbies
*
Offline


Life is so wonderfull

Posts: 19
Joined: Apr 11th, 2007
Re: DragDrop an arrow object ?
Reply #4 - Apr 12th, 2007 at 10:51am
Print Post  
ok, it work it was the property I need (ControlPoints). thanks a lot
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint