How to turn off the annotation shadow

TeeChart for ActiveX, COM and ASP
Post Reply
hansw
Newbie
Newbie
Posts: 59
Joined: Fri Nov 15, 2002 12:00 am

How to turn off the annotation shadow

Post by hansw » Tue Dec 30, 2003 1:59 pm

I tried this,

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

It does nothing the shadow is still visible.

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Tue Dec 30, 2003 2:22 pm

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);
}
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply