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 1358

Summary: Custom Axis Labels can't be hidden
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: AxisAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=15824&p=70269#p70269
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: test project

Description yeray alonso 2015-10-28 09:19:27 EDT
Created attachment 523 [details]
test project

Having custom labels in an axis, setting a TAxisItem Format.Visible:=false doesn't hide the label.

In v8 you could do this to an axis:

Items[index].Visible:=false;

But since v2010.01 Items[index] is a TAxisItem that hasn't a Visible property.
So you have to do it through Items[index].Format:

Items[index].Format.Visible:=false;

But the Visibility isn't checked when drawing a TCustomTextShape, so the label is still drawn.

See the project attached.