Page 1 of 1

Series Format->Marks->Format question.

Posted: Thu Oct 14, 2010 1:20 pm
by 9530487
Hello,

I have a line series.

If you edit the series in the editor, select the "Marks" tab, then select "Format" there are options for "Colour", "Transparency", "Pattern" and "Transparent".

How do I access these in code? I cannot find the settings. I know it must be part of the "Marks" class, I just cannot figure out which settings.

Thanks in advance,

Tony.

Re: Series Format->Marks->Format question.

Posted: Thu Oct 14, 2010 2:35 pm
by 10050769
Hello Tony,

If you want change Format of Marks to running time you need do next:

Transaprent property:

Code: Select all

 TCahrt1.Series(0).Marks.Transparent = True
Percentage of transparency

Code: Select all

TChart1.Series(0).Marks.Transparency = 50
Change Color of Marks:

Code: Select all

 TChart1.Series(0).Color = vbBlack
Change pattern of marks using brush propriety: In this one you are need assign for each mark its brush style, because at the moment isn't possible assign for all marks their style at once. I have added it in wish-list with number (TA05015209) to be considered as an enhancement for future releases.

Code: Select all

 Dim i As Integer
 For i = 0 To TChart1.Series(0).Count
  TCahrt1.Series(0).Marks.Item(i).Brush.Style = bsCross
 Next
I hope will helps.

Thanks,

Re: Series Format->Marks->Format question.

Posted: Thu Oct 14, 2010 3:16 pm
by 9530487
Sorry, hit submit instead of preview for this message.

Re: Series Format->Marks->Format question.

Posted: Thu Oct 14, 2010 3:21 pm
by 9530487
The transparent and transparency work ok. Thanks for those.

But I don't want to change the colour of the marks. The setting is the background colour of the surrounding box around the marks, its the background of the box that the mark is in (if that makes sense). I can change it using the editor, but I need to be able to do it in code.

If you look at the attached, the marks box has a colour white, pattern colour light blue and the pattern is "fill 80%".

Does that make sense?

Re: Series Format->Marks->Format question.

Posted: Fri Oct 15, 2010 8:52 am
by 10050769
Hello Tony,

I fear its that this is a bug known of the brush object (TV52015167). I have increased its priority and we try to fix it for next maintenance releases.

Thanks,