Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TMS VCL Chart
Adding and removing a Pane

Open the Pane Editor dialog and click on the - icon to remove the selected pane. Click on the + icon to add a new pane. Below is a sample code snippet to add a pane:
procedure TForm1.AddNewPane; 
var 
  p: TAdvChartPane; 
begin 
  p := AdvChartView.Panes.Add; 
  // set properties of Pane here 
end;
In case the GDI+ TAdvGDIPChartView is used, this becomes:
procedure TForm1.AddNewPane; 
var 
  p: TAdvGDIPChartPane; 
begin 
  p := AdvGDIPChartView.Panes.Add; 
  // set properties of GDI+ Pane here 
end;
To remove a pane, this code can be used:
procedure TForm1.RemovePane; 
begin 
  AdvChartView.Panes[0].Free; 
end;