|
ImageMaps in WinForms |
Posted by David on Feb-09-2013 00:33 |
|
I am trying to understand how the cursor is handled in the WinForms control. Here's the code I'm using to attach the image map:
WinChartViewer1.ImageMap = xyChart.getHTMLImageMap("clickable", "", "title='[{dataSetName}] Minute = {x}, Value = {value}'");
The tooltips appear but the cursor remains the default pointer.
I've tried using the MouseEnterHotSpot and MouseLeaveHotSpot handlers with some success. Within the handlers, I've set the cursor for the WinChartViewer1 control and it works properly with the main image map. The problem I have is that a sub imagemap on several scatter layers still show the default pointer when mouseover occurs. The ClickHotSpot handler and tooltips works fine for both imagemaps, so I'm not sure why.
Regardless, I've read in some of the forum posts here that setting the first argument to clickable should take care of hand cursor automatically for the imagemap. Do you have any ideas why that's not working?
Thanks for any suggestions,
David |
Re: ImageMaps in WinForms |
Posted by Peter Kwan on Feb-09-2013 04:12 |
|
Hi David,
Setting the first parameter to any value (other than empty) will cause the WinChartViewer to use the cursor as configured in WinChartViewer.HotSpotCursor. The HotSpotCursor can be configured using the Property page of the WinChartViewer. If it is not configured, the default is the "pointer" (which means you would not see the hand cursor).
In your case, is it possible the HotSpotCursor is not configued?
Regards
Peter Kwan |
Re: ImageMaps in WinForms |
Posted by David on Feb-09-2013 04:30 |
|
Yes, it was not set. Thanks for the quick help! |
|