Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Ho to add context menu (Read 2450 times)
rayan05
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Feb 29th, 2008
Ho to add context menu
Mar 10th, 2009 at 1:05pm
Print Post  
Hi

I want to add context menu to the net diagram.
I want it on Diagramview.Click event. How can I handle this.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Ho to add context menu
Reply #1 - Mar 10th, 2009 at 3:26pm
Print Post  
Hi,

What ClientSideMode are you using?

Stoyan
  
Back to top
 
IP Logged
 
rayan05
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Feb 29th, 2008
Re: Ho to add context menu
Reply #2 - Mar 10th, 2009 at 6:05pm
Print Post  
I'm using ImageMap mode. Basicaly I want to know how to capture the Diagram.Clicked event.

I tried this but it wont work

Dim f1 As Diagram = DiagramView1.Diagram

AddHandler f1.Clicked, AddressOf DiagramView1_Clicked
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Ho to add context menu
Reply #3 - Mar 11th, 2009 at 10:32am
Print Post  
For displaying a context menu, better handle the event on the client side. You could assign the name of some JavaScript function to the NodeClickedScript or LinkClickedScript properties, and the control will invoke them when the user clicks an item.

There is also a ClickedScript that should be called when the user clicks an unoccupied area of the diagram, but at this time it is supported only in JavaApplet mode. You could still detect clicks anywhere on the diagram by attaching a mouseDown handler to the DIV element whose ID equals to DiagramView.ClientID.

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