Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to turn off hotspots (Read 4011 times)
wyang
YaBB Newbies
*
Offline



Posts: 10
Joined: Jan 14th, 2007
How to turn off hotspots
Mar 14th, 2007 at 1:05am
Print Post  
How do I turn off hotspots?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to turn off hotspots
Reply #1 - Mar 14th, 2007 at 4:32am
Print Post  
If by "hotspots" you mean selection handles, you can set HandleStyle = Invisible or Locked = true. If you mean anchor points - set Node.AnchorPattern = null.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to turn off hotspots
Reply #2 - Mar 14th, 2007 at 4:33am
Print Post  
... and if you need to disable individual selection handles, clear their respective flags in the EnabledHandles property.

  
Back to top
 
IP Logged
 
wyang
YaBB Newbies
*
Offline



Posts: 10
Joined: Jan 14th, 2007
Re: How to turn off hotspots
Reply #3 - Mar 14th, 2007 at 9:52pm
Print Post  
What I mean by "Hotspots" is actually the hyperlink associated to all diagrams in the flowchart.

How do I turn those hyperlinks off?

I tried to set the hyperlink = string.empty, but the hyperlink will interpret that as the home page link.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to turn off hotspots
Reply #4 - Mar 15th, 2007 at 5:11am
Print Post  
The HtmlBuilder doesn't create image map area for a node whose Hyperlink is set to the empty string "". But I think that older versions of the control created areas even for empty hyperlinks - which FlowChart.NET version do you have? You might still be able to stop the hyperlink from going to the home page by setting it to "javascript:void".

Stoyan
  
Back to top
 
IP Logged
 
wyang
YaBB Newbies
*
Offline



Posts: 10
Joined: Jan 14th, 2007
Re: How to turn off hotspots
Reply #5 - Mar 15th, 2007 at 7:58pm
Print Post  
Yeah, tried "Javascript: void" but the hyperlinks are still active. When I clicked the hyperlink, it is not going to homepage but giving me a javascript error.

What I want is actually disable those hyperlinks so the user can't click on anything. The user can only view the flowchart.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to turn off hotspots
Reply #6 - Mar 16th, 2007 at 5:07am
Print Post  
If you do not need hyperlinks at all, simply don't create an image map - remove all references to the HtmlBuilder.

The correct syntax to disable individual hyperlinks is "javascript: void(0)"; that works fine only if the HtmlBuilder.LinkTarget is "_self".

Stoyan
  
Back to top
 
IP Logged
 
wyang
YaBB Newbies
*
Offline



Posts: 10
Joined: Jan 14th, 2007
Re: How to turn off hotspots
Reply #7 - Mar 18th, 2007 at 8:54pm
Print Post  
I need to create an image map so that the flowchart can be displayed in the website.

Is there any other way to do that besides creating image map?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to turn off hotspots
Reply #8 - Mar 19th, 2007 at 8:46am
Print Post  
You can copy the code related to image generation from the WebApp example - e.g. adding an IMG tag, setting its URL to ImageGen.aspx and sending the image data from the ImageGen page to the browser. Just leave out the parts related to generating the client side image map - i.e. do not use the HtmlBuilder to add a MAP tag and do not add an USEMAP attribute to the IMG tag.

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