Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Understanding Behaviour (Read 2834 times)
Stuart
Junior Member
**
Offline


Short, fat and bald, that's
me.

Posts: 64
Location: Lincs, UK
Joined: Sep 5th, 2008
Understanding Behaviour
Sep 15th, 2008 at 8:47am
Print Post  
I'm putting together an app where I want to control quite closely what the user does.

To that end, and with your help, I've got the following options set:

fcx.Behaviour := bhPanAndModify
fcx.ShowDisabledHandles := false;

and on each box created....

box.MnpHandlesMask := 256; // Just show the 'move' handle.

When I click on a box, I can move the box by dragging the 'move' handle, as you would expect. However, if I click on an arrow the segment handles are drawn and the cursor changes shape if it's over one of these handles but I can't move it.

Have I misunderstood what PanAndModify means? It says:

Quote:
users can only select existing shapes and arrows, move and modify them

but this doesn't appear to hold true for arrows.
  

-- &&Stuart
Back to top
YIM  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Understanding Behaviour
Reply #1 - Sep 15th, 2008 at 10:09am
Print Post  
Okay, that's not exactly what we intended. This version of the control should let you modify arrows too:
https://mindfusion.eu/_temp/FlowChartPro.zip

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


Short, fat and bald, that's
me.

Posts: 64
Location: Lincs, UK
Joined: Sep 5th, 2008
Re: Understanding Behaviour
Reply #2 - Sep 15th, 2008 at 10:35am
Print Post  
Thanks, Stoyan. After a couple of false starts I can now move the arrows as well.

Nice one.

There is a kind of follow-on question, however.

The image below shows a section of my flowchart before I modify it...

I can move the arrow in such a way that it sticks to wherever in the shape I drop it, despite there being an AnchorPattern on the shape that only allows InArrows to come in to the 12 o'clock position.
  

-- &&Stuart
Back to top
YIM  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Understanding Behaviour
Reply #3 - Sep 15th, 2008 at 11:48am
Print Post  
Set FlowChart.SnapToAnchor = saOnCreateOrModify.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Stuart
Junior Member
**
Offline


Short, fat and bald, that's
me.

Posts: 64
Location: Lincs, UK
Joined: Sep 5th, 2008
Re: Understanding Behaviour
Reply #4 - Sep 15th, 2008 at 11:52am
Print Post  
Neat.

Thanks.

I'm hoping to soon be finished with the test/demo app so then I'll be able to leave you alone.
  

-- &&Stuart
Back to top
YIM  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint