Print Page | Close Window

Catching ChartSeriesPoint Associated Labels

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Chart Control
Forum Description: Topics Related to Codejock Chart Control
URL: http://forum.codejock.com/forum_posts.asp?TID=24095
Printed Date: 19 April 2024 at 5:41pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Catching ChartSeriesPoint Associated Labels
Posted By: GazitJ
Subject: Catching ChartSeriesPoint Associated Labels
Date Posted: 19 November 2020 at 3:56am
Hey All,

I'm trying to use the HitTest() method for catching associated "ChartSeriesPoint" labels in my dialog.

CUiChartControl* ipChart
CPoint iPt

ChartSeriesPoint* pChartSeriesPoint =
dynamic_cast<ChartSeriesPoint*>(ipChart->HitTest(iPt));
ChartAxisLabel* pBarAxisLabel =
dynamic_cast<ChartAxisLabel*>(ipChart->HitTest(iPt));
ChartBarSeriesLabel* pBarSeriesLabel =
dynamic_cast<ChartBarSeriesLabel*>(ipChart->HitTest(iPt));

When I'm catching the "ChartAxisLabel" or the "ChartBarSeriesLabel" I don't see anything
that connect them to the "ChartSeriesPoint".



Can someone help me please?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net