How to use the ColorBand?
Posted: Thu Nov 08, 2012 2:23 pm
Dear Steema support,
I want to add a colorband to my chart,my code as followed:
int m_nCurrentBand=GetTools().Add(tcColorband);
COleVariant colorBandAxis;
colorBandAxis.vt = VT_DISPATCH;
colorBandAxis.pdispVal = GetAxis().GetLeft().m_lpDispatch;
GetTools().GetItems(m_nCurrentBand).GetAsColorband().SetAxis(colorBandAxis);
but the error which says that an Invalid Axis type!
Any help will be appreciated!
Jerry
I want to add a colorband to my chart,my code as followed:
int m_nCurrentBand=GetTools().Add(tcColorband);
COleVariant colorBandAxis;
colorBandAxis.vt = VT_DISPATCH;
colorBandAxis.pdispVal = GetAxis().GetLeft().m_lpDispatch;
GetTools().GetItems(m_nCurrentBand).GetAsColorband().SetAxis(colorBandAxis);
but the error which says that an Invalid Axis type!
Any help will be appreciated!
Jerry