GridBandTool SetTransparency Fails with Member Not Found

TeeChart for ActiveX, COM and ASP
Post Reply
HTRI_User
Newbie
Newbie
Posts: 1
Joined: Fri Feb 26, 2010 12:00 am

GridBandTool SetTransparency Fails with Member Not Found

Post by HTRI_User » Fri Apr 23, 2010 2:03 pm

When i attempt to set the transparency of a GridBandTool band i get a Member Not Found exception. I am using v8 of the ocx component in C++. The code looks as follows. Also all the GridBandBrush members work except the last 3 (SetTransparency, GetTransparency, and GetGradient)

CToolList toolList = m_teChart.GetTools();

int item = toolList.Add(tcGridBand);
tools = toolList.GetItems(item);

CGridBandTool gridBand = tools.GetAsGridBand();
COleVariant v(short((m_showBands != 2) ? atLeft : atBottom));
gridBand.SetAxis(v);

CGridBandBrush band = gridBand.GetBand1();
band.SetColor(m_rgbBand1);
// band.SetTransparency(50); // this causes a "Member not found" error

band = gridBand.GetBand2();
band.SetColor(m_rgbBand2);
// band.SetTransparency(50);

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: GridBandTool SetTransparency Fails with Member Not Found

Post by Narcís » Fri Apr 23, 2010 2:47 pm

Hi HTRI_User,

Thanks for reporting. I could reproduce the issue here and added it (TA05014833) to the defect list to be fixed for next releases.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply