Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic BoxClicked Event (Read 2660 times)
alesdario
Junior Member
**
Offline



Posts: 71
Joined: Mar 7th, 2007
BoxClicked Event
Sep 12th, 2007 at 7:11am
Print Post  
Hi stoyo.
In WebChart.NET.dll BoxClicked Event can be used like in FlowChart.NET.dll?

this code does'n generate anything. Sad
Code
Select All
private void Page_Load(object sender, System.EventArgs e)
{
...

fc.BoxClicked += new BoxMouseEvent(fc_BoxClicked);

...
}
private void fc_BoxClicked(object sender, BoxMouseArgs e)
{
   fc.ClearAll();
}
 



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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: BoxClicked Event
Reply #1 - Sep 12th, 2007 at 8:24am
Print Post  
Hi,

The WebChart.NET.dll does not support events. You could pass some arguments through the Box.HyperLink that will let you find out on the server side which box has been clicked. You can also use hyperlinks of the form "javascript: code" to handle that on the client side.

Stoyan
  
Back to top
 
IP Logged
 
alesdario
Junior Member
**
Offline



Posts: 71
Joined: Mar 7th, 2007
Re: BoxClicked Event
Reply #2 - Sep 12th, 2007 at 8:27am
Print Post  
Stoyo wrote on Sep 12th, 2007 at 8:24am:
...
You can also use hyperlinks of the form "javascript: code" to handle that on the client side...

Stoyan
I do this but when i click on a box, first is opened a web page, and after is opened javascript. Why? Is it normal?

Very very tanks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: BoxClicked Event
Reply #3 - Sep 12th, 2007 at 8:47am
Print Post  
Set HtmlBuilder.LinkTarget to "_self" and then the browser shouldn't open a new window.

Stoyan
  
Back to top
 
IP Logged
 
alesdario
Junior Member
**
Offline



Posts: 71
Joined: Mar 7th, 2007
Re: BoxClicked Event
Reply #4 - Sep 12th, 2007 at 10:39am
Print Post  
Excese me stoyo...where i must insert the code you write me? Smiley
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: BoxClicked Event
Reply #5 - Sep 12th, 2007 at 12:06pm
Print Post  
Aren't you using HtmlBuilder somewhere in your code to enable hyperlinks for the exported flowchart image? There just before calling the CreateImageMap method, set the LinkTarget property to "_self".

Stoyan
  
Back to top
 
IP Logged
 
alesdario
Junior Member
**
Offline



Posts: 71
Joined: Mar 7th, 2007
Re: BoxClicked Event
Reply #6 - Sep 12th, 2007 at 12:57pm
Print Post  
Sorry   Smiley Smiley Smiley Smiley Smiley Smiley I dismiss from the mind... Smiley

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