I tried this,
m_Chart1.GetTools().GetItems( 0).GetAsAnnotation().GetShape().SetShadowSize(0);
It does nothing the shadow is still visible.
How to turn off the annotation shadow
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hi --
The following works OK with TeeChart AXv6.0.0.4:I tried this,
m_Chart1.GetTools().GetItems( 0).GetAsAnnotation().GetShape().SetShadowSize(0);
It does nothing the shadow is still visible.
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/
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/