Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 539

Summary: Failed to change Marks Text
Product: FireMonkey TeeChart Reporter: elmec <wave>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED NOTABUG    
Severity: critical CC: david, sandra
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description elmec 2014-01-19 20:42:04 EST
The mark appear without text on it when I tried to change marks text
 using the following code .
--------------------------------
SeriesMark->Marks->Item[3]->Text->Text = "N";
--------------------------------


Teechart version : The newest one for now.
Comment 1 elmec 2014-01-19 20:43:08 EST
For the example project, go here.
http://www.teechart.net/support/viewtopic.php?f=3&t=14579
Comment 2 david berneda 2014-01-20 10:11:48 EST
I think this is not a bug. 
The SeriesMarks has only one point, at index 0, not 4 points from indexes 0..3

So, this code works, replacing "3" by "0" (0= the index of the first and only point in the series)

	// Tried to add a mark at index of 3 .
	SeriesMark->AddXY(3, max);
	SeriesMark->Marks->Item[0]->Text->Text = "N";
        SeriesMark->Marks->Item[0]->Font->Size=18;