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 - Custom Axis Labels can't be hidden
Summary: Custom Axis Labels can't be hidden
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Axis (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-28 09:19 EDT by yeray alonso
Modified: 2015-11-06 07:44 EST (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments
test project (1.76 KB, application/octet-stream)
2015-10-28 09:19 EDT, yeray alonso
Details

Note You need to log in before you can comment on or make changes to this bug.
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.