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 484

Summary: Read-only mode for Data tab in the chart editor
Product: VCL TeeChart Reporter: narcís calvet <narcis>
Component: EditorsAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement CC: david
Priority: Low    
Version: 131119   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://stackoverflow.com/questions/20237279/teechart-data-editing-disable/20237605?noredirect=1#comment30182602_20237605
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description narcís calvet 2013-11-27 06:19:15 EST
It would be helpful if the data tab in the chart editor could be made read-only.
Comment 1 david berneda 2013-11-28 09:09:42 EST
Fixed.
Added a new option to disable editing at "Data" tab in Chart Editor dialog.

uses
  TeeEditCha;

procedure TForm1.Button1Click(Sender: TObject);
begin
  ChartEditor1.Options:=ChartEditor1.Options-[ceEditData];
  ChartEditor1.Execute;
end;

If instead of using a TChartEditor component, you are using directly the TChartEditorPanel or TChartGrid controls, then simply change the Options property:

  ChartGrid1.Options:=ChartGrid1.Options-[goEditing];

or

 ChartEditorPanel1.Editor.ChartGrid1.Options:=ChartEditorPanel1.Editor.ChartGrid1.Options-[goEditing];