Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How about data relationships? (Read 2297 times)
doc203
Guest


How about data relationships?
Sep 14th, 2006 at 1:07am
Print Post  
I just found this tool and while I love it for what it does, it doesn't quite meet what I was searching for.

I'm looking to display two side-by-side tables of data (joined by a many-to-many relationship).  Between these two tables I want arrows showing which rows are connected. 

Displaying many-to-many relationships in a GUI has always been difficult.  Having a visual map of data relations (without multiple nested child tables) would be an outstanding.

To manage relations, I envision dragging and dropping to create relations much like what FlowChart does now, and then I imagine right clicking and choosing remove from a context menu to delete relations.

Would this be a difficult extension to FlowChart?  Or better yet, can it be done now as is?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How about data relationships?
Reply #1 - Sep 14th, 2006 at 6:39am
Print Post  
Hi,

It looks like this can be implemented using the current FlowChart.NET features. If you need to let the user only draw arrows but not new tables, set the Behavior property to CreateArrow. 'Behavior' specifies how the control should respond to users drawing with the mouse.

If what you ask is how to display a context menu, you can do that by handling the ArrowClicked event as shown below:

Code
Select All
Arrow clickedArrow = null;

private void fc_ArrowClicked(object sender, MindFusion.FlowChartX.ArrowMouseArgs e)
{
  if (e.Button == MouseButtons.Right)
  {
    clickedArrow = e.Arrow;
    contextMenu1.Show(fc, fc.DocToClient(e.DocumentPos));
  }
}
 



Now in the context menu command handlers you can use the 'clickedArrow' variable to access the arrow for which the menu has been displayed.

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