Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Dropping boxes on other boxes (Read 11392 times)
Pascal
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Oct 7th, 2005
Re: Dropping boxes on other boxes
Reply #15 - Oct 8th, 2005 at 7:42pm
Print Post  
Hi all,

I interrested in this modification too. I've implemented the drag and drop but now I have the same refresh problem.
Is it possible to have this modification too.

Thanks.
Pascal.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Dropping boxes on other boxes
Reply #16 - Oct 10th, 2005 at 9:47am
Print Post  
Hi,

I've just emailed the updated dlls to both of you; let me know if you face any problems with the new method.

Stoyan
  
Back to top
 
IP Logged
 
Jon Merrifield
Guest


Re: Dropping boxes on other boxes
Reply #17 - Oct 10th, 2005 at 10:05am
Print Post  
Stoyo,

We had a discussion a while back (http://mindfusion.org/cgi/Forum/YaBB.pl?board=fcnet_disc;action=display;num=1127...) about grouping boxes using a transparent background box.  I'm trying to combine these two features now and running into some difficulty.  If I set up a group of boxes which are subordinate to a transparent background box, and then try and drag that group onto another box, I can't seem to get a reference to the 'drop target' box underneath, the code I had been using will only return the background box.  This occurs even though I use GetNodeObjectAt with ExcludeLocked and ExcludeSelected set to True, and the background box is the currently selected box.  Have you any ideas how I can make this work?  Thanks,

Jon

PS Thank you for the daily build file - just received it
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Dropping boxes on other boxes
Reply #18 - Oct 10th, 2005 at 11:26am
Print Post  
Jon,

Are you sure that the returned object is the transparent master box ? If the subordinated objects are not locked, some of them might be returned by GetNode.

Stoyan
  
Back to top
 
IP Logged
 
Jon Merrifield
Guest


Re: Dropping boxes on other boxes
Reply #19 - Oct 10th, 2005 at 12:04pm
Print Post  
Stoyo,

Done some further checking and the box returned is actually the backbox of the 'drop target' rather than the box about to be dropped.  That's exactly what I would expect, I had just forgotten that I was dropping onto one of these groups as well!

The updated dll works very well, thanks for that.

Jon
  
Back to top
 
IP Logged
 
Pascal
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Oct 7th, 2005
Re: Dropping boxes on other boxes
Reply #20 - Oct 11th, 2005 at 11:00am
Print Post  
The new dll's working fine.

Good job guys.
Pascal.
  
Back to top
 
IP Logged
 
Tati
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Feb 13th, 2006
Re: Dropping boxes on other boxes
Reply #21 - Feb 13th, 2006 at 6:23pm
Print Post  
Stoyo wrote on Oct 6th, 2005 at 10:17am:
Ok we often get requests for handling 'drag over box/table' operations, I'll get a developer here implement some events for these in the next release of FlowChart.NET.


Hi,  I am evaluationg 4.0.2 version and am wondering if there are new events to drop a box over another?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Dropping boxes on other boxes
Reply #22 - Feb 13th, 2006 at 6:47pm
Print Post  
Hi,

There is only the BoxModified event raised when a box is moved and dropped somewhere. Then you can detect if there are other boxes at that position by iterating the Boxes collection and calling the

public bool Intersects(Node node)

method.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint