Page Index Toggle Pages: [1] 2 3  Send TopicPrint
Very Hot Topic (More than 25 Replies) Moving shadow not the actual item (Read 15380 times)
anurodhora
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 103
Joined: Jan 19th, 2009
Moving shadow not the actual item
Mar 29th, 2009 at 5:40am
Print Post  
Hi,

I was wondering if it is possible to move only selected items(nodes/links) shadow not the items themselves so that if the user drags selected item only a shadow moves and the actual items remain at their position itself and when he releases mouse left button the actual items are the moved to the new position and if he happens to right click in between the drag operation should get cancelled.

Please suggest me on how to achieve this with wpfdiagram.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Moving shadow not the actual item
Reply #1 - Mar 29th, 2009 at 9:54am
Print Post  
Hi,

There's no built-in support for this. You could implement it using a custom behavior that clones the selected items, sets their colors to semi-transparent ones and starts moving the clones instead of the original items. When the modification is done, delete the clones and move the original items.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
anurodhora
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 103
Joined: Jan 19th, 2009
Re: Moving shadow not the actual item
Reply #2 - Mar 30th, 2009 at 1:36pm
Print Post  
Hi Stoyan,

Thanks for the reply, could you please tell me about custom behavior as i am trying to get more into it.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Moving shadow not the actual item
Reply #3 - Mar 31st, 2009 at 2:53pm
Print Post  
Check this example:
https://mindfusion.eu/_samples/CusBeh.zip

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Moving shadow not the actual item
Reply #4 - Sep 8th, 2009 at 11:17am
Print Post  
Hi Stoyan,

We have seen the example shared by you. we want to implement it but it has some issues.

1). If we select multiple nodes, clone effect wont work and one exception is also coming.

2). If select any node to move and now we want to cancel the operation using Escape key, how could we handle this?

3) If node have some link associated with it, they should also display clone effect, but how?

Please suggest.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Moving shadow not the actual item
Reply #5 - Sep 11th, 2009 at 11:31am
Print Post  
Hi Anshul,

https://mindfusion.eu/_beta/wpfdiag_modfeffect.zip

This version adds the Diagram.ModificationEffect property. Set it to MoveShades to see transparent copies of the items while modifying them.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Moving shadow not the actual item
Reply #6 - Sep 14th, 2009 at 6:28am
Print Post  
Hi Stoyan,

Thanks for the files.
I want to know when we will get next build of Mindfusion.Diagramming.wpf.dll ?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Moving shadow not the actual item
Reply #7 - Sep 14th, 2009 at 6:57am
Print Post  
Hi Anshul,

We'll have to investigate a couple of bug reports before releasing an official version, if that's what you are asking for. We should release it next week. If you just want to get rid of the "beta" label, we could send you a build of the assembly without that label.

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


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Moving shadow not the actual item
Reply #8 - Sep 14th, 2009 at 7:16am
Print Post  
Hi,

Thanks for the quick reply.
I wanted to know about the next official release. Thanks for informing.

Will that version will also include support for
1). Link automatically gets select if click on the diagram near the link.(http://mindfusion.eu/Forum/YaBB.pl?board=wpfdg_disc;action=display;num=124447157...)

2). Expander button inside the node.(InnerBottom or InnerTop position)

3). Pan Support in Diagram.(Hand cursor to Drag contents of diagram up/down/left/right)

4). Tantative date of release?


Thanks,
Anshul

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Moving shadow not the actual item
Reply #9 - Sep 14th, 2009 at 9:40am
Print Post  
Hi,

1. I think we added the LinkHitDistance property for this. Try setting it to a small value, e.g. 1 point.

2. Yes, that will be included.

3. Doesn't setting Diagram.Behavior = Pan work?

4. 24th of September.

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


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Moving shadow not the actual item
Reply #10 - Sep 14th, 2009 at 9:58am
Print Post  
Hi Stoyan,

We are using version 2.1.1.23367 of Mindfusion.Daigramming.Wpf.

1). LinkHitDistance property is not in this version.
2). Diagram.Behavior = Behavior.Pan is not in this version.

Please try to include these two properties in coming version.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Moving shadow not the actual item
Reply #11 - Sep 14th, 2009 at 10:25am
Print Post  
Both are available since version 2.2, which we released in July.

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


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Moving shadow not the actual item
Reply #12 - Oct 26th, 2009 at 10:23am
Print Post  
Hi Stoyan,

We are using version 2.2.1.

We want Expander button inside the node.(InnerBottom or InnerTop position) as you have written that you would provide support for this too in this built but we are not able to see that here. Could you please tell us when we will get support for it?


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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Moving shadow not the actual item
Reply #13 - Oct 26th, 2009 at 11:04am
Print Post  
We have added a Custom value to ExpandButtonPosition:

Code
Select All
diagram.ExpandButtonPosition = ExpandButtonPosition.Custom;
diagram.CustomExpandButtonPosition = (n) =>
{
	Rect r = n.Bounds;
	r.X = r.Width - 12;
	r.Y = r.Height - 12;
	r.Width = r.Height = 12;
	return r;
};
 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Moving shadow not the actual item
Reply #14 - Oct 26th, 2009 at 11:54am
Print Post  
Hi Stoyan,

Thanks for the reply. We will try to implement it.

We have 2 queries regarding ModificationEffect.
1). We want to display only border of the selected object on MoveShades. Currently it is displaying opaque image of the object. We want only outline.

2). while dragging if we press escape button, we want operation get canceled and node should be move to their original position. Is it possible?

Please suggest us for these two issues.

Regards,
Anshul
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 3 
Send TopicPrint