ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  HotSpotCursor
Posted by Revathi on Mar-06-2014 15:09
Hello,
I am developing a Windows Form Application using C#. I am using a pie chart which when
double clicked on a section of the chart or a legend box item gets the label of that
particular section. I have used ImageMap for this and it works fine.

//Image Map
this.chartViewer.ImageMap = folderSizeChart.getHTMLImageMap("", "", "title='{label}'") +
legend.getHTMLImageMap("", "", "title='{label}'");

//double click handler
this.chartViewer.DoubleClickHotSpot += new
ChartDirector.WinHotSpotEventHandler(this.chartViewer_DoubleClickHotSpot);

However I want the mouse cursor to change to hand pointer when it is moved over a
clickable section. I configured the HotSpotCursor property to Hand but it does not work.

this.chartViewer.HotSpotCursor = System.Windows.Forms.Cursors.Hand;

I tried to set the chartviewer cursor property to hand which works.

this.chartViewer.Cursor = System.Windows.Forms.Cursors.Hand;
Do I need to set any other property in order to configure hotspotcursor?

Thanks in advance.
Regards

  Re: HotSpotCursor
Posted by Peter Kwan on Mar-07-2014 02:44
Hi Revathi,

The HotSpotCursor only works for "normal hot spot", which is defined as a hot spot with a
non-empty href (see WinChartViewer.ImageMap). This feature is to allow you to specify
which hot spots have cursor feedback, and which hot spots do not have cursor feedback.

For your case, instead of using getHTMLImageMap("", "", "title=...."), you may use
getHTMLImageMap("clickable", "", "title=...."). The "clickable" text can be any text you like
(to allow you to easily distinguish one type of hot spot from another), but cannot be empty
if you want HotSpotCursor to apply.

Hope this can help.

Regards
Peter Kwan

  Re: HotSpotCursor
Posted by Revathi on Mar-07-2014 13:47
Hi,

   Thanks for the help. It works now.

Regards
Revathi