Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Context Menu Problem (Read 1919 times)
blazetopher
YaBB Newbies
*
Offline



Posts: 9
Joined: Dec 27th, 2006
Context Menu Problem
Jan 10th, 2007 at 1:34pm
Print Post  
First off, I want to give a big Thanks to the developers of these controls - they're great!  I had been using Visio and am VERY glad I made the switch.

I am having a minor problem with FlowChart in regards to Context Menu usage.  Essentially, I created context menus that work on box, arrow, and "flowchart"(no object) right-clicks and they work perfectly....as long as an item in the context menu is selected...  The problem is that if the user right-clicks and opens the context menu, and then clicks elsewhere (i.e. decides they don't want to click any of the context menu items), the flowchart control looses all functionality - new objects can't be drawn, in-place editing doesn't work, etc.  The only thing that does still work is selection of objects.
Even more strange - is that if another context menu is then made (right-click again) and one of the items is selected, all flowchart functionality returns.

Any thoughts?  If there's a particular event that would be helpful to see, let me know and I'll pass it along.

Thanks in advance!!  Oh, I'm using C# if that makes any difference.
  
Back to top
 
IP Logged
 
blazetopher
YaBB Newbies
*
Offline



Posts: 9
Joined: Dec 27th, 2006
Re: Context Menu Problem
Reply #1 - Jan 10th, 2007 at 2:05pm
Print Post  
To save someone the trouble of replying to this post - I solved the problem.

As it turns out, the context menu that I show when the user clicks on the FlowChart (FlowChart_MouseClick event) was (duh...) being called when the user clicked on a box or arrow as well - thus, there were actually two context menus being created and only one was being dismissed properly....

A bit of logic in the FlowChart_MouseClick event to check for a ChartObject at the location of the click and I'm rolling again!!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Context Menu Problem
Reply #2 - Jan 10th, 2007 at 2:40pm
Print Post  
Hi,

The DocClicked event is raised when the user clicks on an empty area, where there isn't any ChartObject. This should make the decision which menu to display a bit easier.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint