Series format -> Marks ->Margins query.

TeeChart for ActiveX, COM and ASP
Post Reply
TonyVSUK
Advanced
Posts: 163
Joined: Wed Mar 01, 2006 12:00 am

Series format -> Marks ->Margins query.

Post by TonyVSUK » Wed Sep 22, 2010 11:31 am

If you are in the TChart editor, and select a line series, followed by "Marks", and then "Margins", you have the option of setting the units to "Percent Font", "Percent Size" or "Pixels".

But in my TeeChartDefines.h file, I only have
// EErrorWidthUnits
const unsigned long ewuPercent = 0;
const unsigned long ewuPixels= 1;

Am I missing one? Shouldn't there be ewuPercentFont, ewuPercentSize and ewuPercentPixels?

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Series format -> Marks ->Margins query.

Post by Yeray » Thu Sep 23, 2010 2:16 pm

Hi Tony,

In TeeChart AX v2010 Beta I can see:

Code: Select all

// EMarginsUnits
const unsigned long maPercentFont = 0;
const unsigned long maPercentSize = 1;
const unsigned long maPixels = 2;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

TonyVSUK
Advanced
Posts: 163
Joined: Wed Mar 01, 2006 12:00 am

Re: Series format -> Marks ->Margins query.

Post by TonyVSUK » Thu Sep 23, 2010 2:22 pm

Are these valid in version 8.0.0.7?

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Series format -> Marks ->Margins query.

Post by Yeray » Thu Sep 23, 2010 2:48 pm

Hi Tony,

No, and neither in TeeChart AX 8.0.0.8. It's new in TeeChart v2010.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

TonyVSUK
Advanced
Posts: 163
Joined: Wed Mar 01, 2006 12:00 am

Re: Series format -> Marks ->Margins query.

Post by TonyVSUK » Thu Sep 23, 2010 2:54 pm

ok, so back to the original question, if you are in the TChart editor, and select a line series, followed by "Marks", and then "Margins", you have the option of setting the units to "Percent Font", "Percent Size" or "Pixels".

How do you set these in code given there are only two options (ewuPercent and ewuPixels)?

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

Re: Series format -> Marks ->Margins query.

Post by Narcís » Mon Sep 27, 2010 10:40 am

Hi Tony,

What about using values (0, 1 and 2) instead of constants?
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

TonyVSUK
Advanced
Posts: 163
Joined: Wed Mar 01, 2006 12:00 am

Re: Series format -> Marks ->Margins query.

Post by TonyVSUK » Mon Sep 27, 2010 11:39 am

I can use constants easily enough, but that does not answer the question.

The following constants are in TChart 8.
ewuPercent = 0;
ewuPixels= 1;

How do I set the units to "Percent Font" or "Percent Size" when the only option is "Percent"?

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

Re: Series format -> Marks ->Margins query.

Post by Narcís » Wed Sep 29, 2010 9:20 am

Hi Tony,

Sorry if my explanation was not clear enough. What I meant is that even constants are not defined you can use their numeric value, for example:

Code: Select all

	m_Chart1.Series(series1).GetMarks().GetMargins().SetUnits(2);
0: Sets margins to PercentFont.
1: Sets margins to PercentSize.
2: Sets margins to Pixels.
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

TonyVSUK
Advanced
Posts: 163
Joined: Wed Mar 01, 2006 12:00 am

Re: Series format -> Marks ->Margins query.

Post by TonyVSUK » Wed Sep 29, 2010 9:30 am

0: Sets margins to PercentFont.
1: Sets margins to PercentSize.
2: Sets margins to Pixels.
Do these work in TChart 8? If they do, it means the following is incorrect.

I just want to be sure before I let my customers use it.

// EErrorWidthUnits
const unsigned long ewuPercent = 0;
const unsigned long ewuPixels= 1;

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

Re: Series format -> Marks ->Margins query.

Post by Narcís » Wed Sep 29, 2010 9:51 am

Hi Tony,

Yes, it does. I did the tests with v8 here.
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