Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Context Menu in Diagramlight (Read 2756 times)
Sachin
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 85
Joined: Mar 14th, 2009
Context Menu in Diagramlight
Apr 7th, 2009 at 2:36pm
Print Post  
HI

In my application i  am using context menu if i right click the mouse button  in diagramlight need to show the contextmenu ,
i used
HtmlPage.Document.AttachEvent("oncontextmenu", OnContextMenu);
it is working fine but the  problem is i  right clicked any where in the page menu comes   my requirement is only right click in diagramlight menu comes other positons dont show the menu .



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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Context Menu in Diagramlight
Reply #1 - Apr 7th, 2009 at 2:58pm
Print Post  
Hi,

You could toggle some boolean flag in the MouseEnter and MouseLeave events, and display the menu only when the flag is set.

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


I love YaBB 1G - SP1!

Posts: 85
Joined: Mar 14th, 2009
Re: Context Menu in Diagramlight
Reply #2 - Apr 7th, 2009 at 3:07pm
Print Post  
hi This logic i tried it cannot work because the right click is html , i dont know which position clicking whether it is an Diagramlight or someother position,
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Context Menu in Diagramlight
Reply #3 - Apr 7th, 2009 at 3:10pm
Print Post  
Isn't OnContextMenu a Silverlight method?
edit: I meant the diagram's Enter/Leave events there.
  
Back to top
 
IP Logged
 
Sachin
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 85
Joined: Mar 14th, 2009
Re: Context Menu in Diagramlight
Reply #4 - Apr 12th, 2009 at 7:48am
Print Post  
HI
i am creating context menu through
even
HtmlPage.Document.AttachEvent("oncontextmenu", OnContextMenu);

so the problem is i am using context menu in only one page when i am navigating to other page then i am right click this event is firing..

if u look at the Rad controls treeview they are supporting COntext menu like that diagramlite will support , idont want to go for HTML events

so try to include this functionality in DIaramlite tool also
because my project lot of pages i am using diagramlite tool, all the pages Contextmenu reqd .
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint