Page 1 of 1

Themes CBuilder again

Posted: Thu Dec 08, 2005 5:05 am
by 9236318
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);
}
//---------------------------------------------------------------------------
>>

Ouch

Posted: Mon Dec 12, 2005 4:52 pm
by 9236318
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...

oops

Posted: Mon Dec 12, 2005 4:56 pm
by 9236318
That's right, one has to pay to communicate directly...

Posted: Mon Dec 12, 2005 5:18 pm
by narcis
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.

Posted: Tue Dec 13, 2005 3:24 pm
by narcis
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".