Hi Narcis,
Thanks for the examples you sent. I sent you an email back, but did not get a response. The example you sent is posted below.
Interestingly, the ones you commented out did not work (even after I uncommented them:)) and the ones that were not commented did work.
Does this mean that they should work, but do not? Again, I understand there are working demos in Delphi, but is there something available in Builder? If it is futile to use themes in Builder I would like to know now before I blow any time.
Next question: "Smooth" only seems to have an affect in the gallery, but has no noticeable affect on the chart itself either in 2D or 3D. Is there something I need to do to fix that?
Thanks
TT
<<
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "TeeThemeEditor.hpp"
#pragma link "TeeThemeEditor"
#include "Chart_Themes.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "Base"
#pragma resource "*.dfm"
TChartThemes *ChartThemes;
//---------------------------------------------------------------------------
__fastcall TChartThemes::TChartThemes(TComponent* Owner)
: TBaseForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TChartThemes::FormCreate(TObject *Sender)
{
Series1->FillSampleValues();
Series1->ColorEachPoint = true;
// Add all available themes to ListBox1.
AddChartThemes(ListBox1->Items);
// Select first theme (TeeChart default theme)
ListBox1->ItemIndex = 0;
}
//---------------------------------------------------------------------------
void __fastcall TChartThemes::Button1Click(TObject *Sender)
{
// Show the Chart Theme editor
TChartThemeClass tmp = ChartThemeSelector(Chart1);
if (tmp!=NULL)
{
// ListBox1->ItemIndex = ListBox1->Items->IndexOfObject(tmp);
}
}
//---------------------------------------------------------------------------
void __fastcall TChartThemes::ListBox1Click(TObject *Sender)
{
// TChartThemeClass tmp = __classid(ListBox1->Items->Objects[ListBox1->ItemIndex]);
// Change Theme. The last parameter "-1" means to use the
// default Theme color palette.
// ApplyChartTheme(tmp,Chart1,-1);
}
//---------------------------------------------------------------------------
>>
Themes CBuilder again
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi ttripp,
We will reply to your request as soon as possible, but we need some time to look into it. Also, some replies have been slightly delayed because last week there were some national holidays previously announced here.Interesting. I would have expected a response. I'll send an email directly to Steema support and let everyone know what happens:) I suspect they are pleading the 5th...
That's not true as we try to give a direct answer to all forums messages within 2 working days.That's right, one has to pay to communicate directly...
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi ttripp,
I've just sent you a working BCB project using themes. I'll also post it at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.
Interestingly, the ones you commented out did not work (even after I uncommented them:)) and the ones that were not commented did work.
Does this mean that they should work, but do not? Again, I understand there are working demos in Delphi, but is there something available in Builder? If it is futile to use themes in Builder I would like to know now before I blow any time.
I've just sent you a working BCB project using themes. I'll also post it at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.
The gallery checkbox is only to smooth the gallery charts. If you want to have smoother charts you need to apply antialias tecnique to them. You'll find an example on how to do that at TeeChart features demo, available at TeeChart's program group, searching for "antialias".Next question: "Smooth" only seems to have an affect in the gallery, but has no noticeable affect on the chart itself either in 2D or 3D. Is there something I need to do to fix that?
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |