Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) Node drag behaviour (Read 10344 times)
priyanka
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Sep 2nd, 2009
Node drag behaviour
Dec 15th, 2009 at 5:40am
Print Post  
Hi,

The modification effect property for diagram to MoveShades.

When I try to drag any node, the shadow for the node moves in upwad direction first and then I am able to drag the node.

Please let know the reason for such behaviour.

Thanks,
Priyanka
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node drag behaviour
Reply #1 - Dec 15th, 2009 at 11:53am
Print Post  
If AlignToGrid is enabled but the node is not initially aligned to the grid, the control might be doing that to show the aligned position when you start dragging. If that's the case, you could use the AlignPointToGrid method to initially create nodes at grid positions.

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


I love YaBB 1G - SP1!

Posts: 56
Joined: Sep 2nd, 2009
Re: Node drag behaviour
Reply #2 - Dec 15th, 2009 at 1:23pm
Print Post  
Hi,

AlignToGrid is set to false then also the node is moving in upward direction irrespective of the direction i am intending it to move.

Please provide some inputs.

Thanks,
Priyanka
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node drag behaviour
Reply #3 - Dec 15th, 2009 at 1:48pm
Print Post  
I can't see anything similar happening in the last test project I have from you, apart from a change of the pen properties you are doing in response to some events.

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


I love YaBB 1G - SP1!

Posts: 56
Joined: Sep 2nd, 2009
Re: Node drag behaviour
Reply #4 - Dec 15th, 2009 at 1:50pm
Print Post  
That issue is not reproducible in the sample.
But we are facing this issue in our application.

Priyanka
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node drag behaviour
Reply #5 - Dec 15th, 2009 at 4:56pm
Print Post  
Does it move a lot, or only a few pixels? Is that node near the borders? In such case it might be related to auto-scrolling.

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


I love YaBB 1G - SP1!

Posts: 56
Joined: Sep 2nd, 2009
Re: Node drag behaviour
Reply #6 - Dec 16th, 2009 at 5:15am
Print Post  
Yes it moves a lot not few pixels.
It does not depends on node position,happens for all the nodes places anywhere on the diagram whether on borders or on any other location in diagram.

Also to add have also added

diagram.ModificationStart = ModificationStart.AutoHandles
along with the Modification effect property.

The diagram scrolls upto 20%(approx.) in either top or left direction.

Also this happens for the very first node(irresepective of node placement position),when is tried to move. For rest of the node the behaviour is correct.


Thanks,
Priyanka
« Last Edit: Dec 16th, 2009 at 6:22am by priyanka »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node drag behaviour
Reply #7 - Dec 16th, 2009 at 9:17am
Print Post  
It might be related to the auto-resize problem you reported some time ago. Could you check if this version fixes it?
https://mindfusion.eu/_beta/wpfdiag23.zip

It should also fix the other issues you had:
- incorrect content bounds calculated with ExpandButtonPosition set to Custom
- the Overview's scale could not be set larger than 100%
- drawing a selection rectangle resized the document with AutoResize enabled
- faster auto-scrolling to the top and left with AutoResize enabled

Let me know if we have forgotten something.

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


I love YaBB 1G - SP1!

Posts: 56
Joined: Sep 2nd, 2009
Re: Node drag behaviour
Reply #8 - Dec 16th, 2009 at 11:07am
Print Post  
Hi,

Thanks for the new dll's.
The following problems are solved from the new dll's:

- incorrect content bounds calculated with ExpandButtonPosition set to Custom
- drawing a selection rectangle resized the document with AutoResize enabled
- faster auto-scrolling to the top and left with AutoResize enabled[But due to this a new issue is raised that the node goes out of visible area when we drag it in TOP or LEFT, whereas some part of the node is visible when the node is moved towards RIGHT ]

But still there are some issues which are listed below:

- The Escape key do not remove the sadow node while dragging. You provided this feature in the ddl in post:
http://mindfusion.eu/Forum/YaBB.pl?board=wpfdg_disc;action=display;num=123830524...

Will this be available in next official release.

- The Overview window issue still persist.
http://mindfusion.eu/Forum/YaBB.pl?board=wpfdg_disc;action=display;num=125983357...

- Text trimming for node.
http://mindfusion.eu/Forum/YaBB.pl?board=wpfdg_disc;action=display;num=125327029...

- Also this version of dll's do not contain ArrowHead enum Sad. Is it replaced by someting else.Let know.

The problem for which this thread was started is solved by the new dll's.


Please let know when an official version of the above fixes will be available.

Thanks,
Priyanka
« Last Edit: Dec 16th, 2009 at 1:22pm by priyanka »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node drag behaviour
Reply #9 - Dec 16th, 2009 at 1:12pm
Print Post  
You should assign Shape instances to the arrowhead properties now; i.e. the same type of objects you would assign to the ShapeNode.Shape property. The enum values from ArrowHead have been replaced by corresponding Shape objects declared in the ArrowHeads class, so just add an 's' there. If you have some custom serialization code that saves the arrowheads as integers, you will have to change it to save the Shape.Id values.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node drag behaviour
Reply #10 - Dec 16th, 2009 at 1:23pm
Print Post  
Calling CancelDrag when handling Escape and Overview.FitAll work as expected in our tests. Send us a project showing how they don't if you believe otherwise.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node drag behaviour
Reply #11 - Dec 16th, 2009 at 1:48pm
Print Post  
The last requirement you had for trimming was to display ellipsis, right? Now you can do that by setting the following:

shape.TextFormat.Trimming = StringTrimming.EllipsisCharacter;
shape.Text = "long long looooooooooooooong text123456";

and it should render ... if the text doesn't fit into the shape's text area. However this does not work with EnableStyledText yet.

Stoyan
  
Back to top
 
IP Logged
 
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Node drag behaviour
Reply #12 - Dec 16th, 2009 at 2:07pm
Print Post  
Hi Stoyan,

Dll in the link https://mindfusion.eu/_beta/wpfdiag23.zip does not have CancelDrag(). It has ShouldCancelDrag() which is not working. You have provided dll's in this link http://mindfusion.eu/Forum/YaBB.pl?board=wpfdg_disc;action=display;num=1 238305247;start=15 which have CancelDrag() and that is working fine.

Overview.FitAll is working in our application, we were doing a mistake.

Can we have support for CancelDrag() in next build?

Regards,
Anshul
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node drag behaviour
Reply #13 - Dec 16th, 2009 at 3:21pm
Print Post  
Hi Anshul,

CancelDrag that we added is a method of the Diagram class.

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


I love YaBB 1G - SP1!

Posts: 56
Joined: Sep 2nd, 2009
Re: Node drag behaviour
Reply #14 - Dec 18th, 2009 at 7:01am
Print Post  
Hi,

Thanks for your replies.
The new dll's resolves all of the problem:

- Text trimming for node[Only need to know when will the text trimming feature will be available with Styled Text]

- Escape key now removes the shadow node while dragging.

- Overview window issue resolved.

- Displaying hidden links when the nodes is selected.

- Now we have correct bound calculation

- drawing selection rectangle do not resize the diagram

- No faster scrolling to LEFT and TOP when autoscrolling is true[But due to this a new issue is raised that the node goes out of visible area when we drag it in TOP or LEFT, whereas some part of the node is visible when the node is moved towards RIGHT]

Please provide some inputs on the issue for node visibility while scrolling to left or top.

Also please let know when all these fixes will be available in an oficial release.When the new version for mindfusion diagramming will be made available.

Thanks,
Priyanka
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint