High-low line chart problem (VC2005; AX 8.0.0.3)
Posted: Fri May 23, 2008 7:10 pm
Hi,
I am trying to modify the high-low line chart pointer styles for my chart. When I use GetHighPointer() or GetLowPointer(), I get a run-time "Member not found" dialog.
Here is a snippet of the code in question:
int iSeries = m_pChart->AddSeries(scHighLowLine);
CSeries series = m_pChart->Series(iSeries);
series.GetAsHighLowLine().AddHighLow(dXValue, dYValueHigh, dYValueLow, NULL, COLOR_GREEN);
series.GetAsHighLowLine().GetHighPointer().SetStyle(psCircle);
The call to AddHighLow works fine, and produces the desired results in the chart. When I add the GetHighPointer() or GetLowPointer() calls, that's when the problem shows up.
I am using the wrapper classes that shipped with AX 8.0.0.3. I have generated new wrapper classes to compare the dispatch IDs, and it all seems to be correct.
Is there a known problem with modifying the pointers in a high-low line chart? I have modified pointers for other chart types in this manner before, and it worked fine.
Thanks,
- Jeff
--
Jeff Whittaker
I am trying to modify the high-low line chart pointer styles for my chart. When I use GetHighPointer() or GetLowPointer(), I get a run-time "Member not found" dialog.
Here is a snippet of the code in question:
int iSeries = m_pChart->AddSeries(scHighLowLine);
CSeries series = m_pChart->Series(iSeries);
series.GetAsHighLowLine().AddHighLow(dXValue, dYValueHigh, dYValueLow, NULL, COLOR_GREEN);
series.GetAsHighLowLine().GetHighPointer().SetStyle(psCircle);
The call to AddHighLow works fine, and produces the desired results in the chart. When I add the GetHighPointer() or GetLowPointer() calls, that's when the problem shows up.
I am using the wrapper classes that shipped with AX 8.0.0.3. I have generated new wrapper classes to compare the dispatch IDs, and it all seems to be correct.
Is there a known problem with modifying the pointers in a high-low line chart? I have modified pointers for other chart types in this manner before, and it worked fine.
Thanks,
- Jeff
--
Jeff Whittaker