Page 1 of 1

How to turn off the annotation shadow

Posted: Tue Dec 30, 2003 1:59 pm
by 9078641
I tried this,

m_Chart1.GetTools().GetItems( 0).GetAsAnnotation().GetShape().SetShadowSize(0);

It does nothing the shadow is still visible.

Posted: Tue Dec 30, 2003 2:22 pm
by Chris
Hi --
I tried this,

m_Chart1.GetTools().GetItems( 0).GetAsAnnotation().GetShape().SetShadowSize(0);

It does nothing the shadow is still visible.
The following works OK with TeeChart AXv6.0.0.4:

Code: Select all

#include "stdafx.h"
#include "VCplus6AXv6.h"
#include "VCplus6AXv6Dlg.h"
#include "TeeChartDefines.h"
#include "waterfallseries.h"
#include "series.h"
#include "brush.h"
#include "toollist.h"
#include "tools.h"
#include "annotationtool.h"
#include "teeshapepanel.h"

void CVCplus6AXv6Dlg::OnShowWindow(BOOL bShow, UINT nStatus) 
{
	CDialog::OnShowWindow(bShow, nStatus);
	
    m_Chart1.AddSeries(scLine);
    m_Chart1.Series(0).FillSampleValues(20);
    m_Chart1.GetTools().Add(tcAnnotate);
    m_Chart1.GetTools().GetItems(0).GetAsAnnotation().SetText("Hi");
    m_Chart1.GetTools().GetItems(0).GetAsAnnotation().GetShape().SetShadowSize(0);
}