Themes CBuilder again

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
ttripp
Newbie
Newbie
Posts: 10
Joined: Wed Mar 16, 2005 5:00 am

Themes CBuilder again

Post by ttripp » Thu Dec 08, 2005 5:05 am

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);
}
//---------------------------------------------------------------------------
>>

ttripp
Newbie
Newbie
Posts: 10
Joined: Wed Mar 16, 2005 5:00 am

Ouch

Post by ttripp » Mon Dec 12, 2005 4:52 pm

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...

ttripp
Newbie
Newbie
Posts: 10
Joined: Wed Mar 16, 2005 5:00 am

oops

Post by ttripp » Mon Dec 12, 2005 4:56 pm

That's right, one has to pay to communicate directly...

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

Post by Narcís » Mon Dec 12, 2005 5:18 pm

Hi ttripp,
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...
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.
That's right, one has to pay to communicate directly...
That's not true as we try to give a direct answer to all forums messages within 2 working days.
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

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

Post by Narcís » Tue Dec 13, 2005 3:24 pm

Hi ttripp,
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.
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?
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".
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