Is there a way to use tree view in the ChartEditor when invoking it via the EditChart() method?
I have the full source code version installed and tried to add the following line
Tree.Visible:=True;
to the EditChatPage() method
ie.
Code: Select all
Procedure EditChartPage(Form:TForm; AChart:TCustomChart; PageIndex:Integer);
begin
With GetChartEditClass(AChart) do
try
TheActivePageIndex:=PageIndex;
Tree.Visible:=True;
ShowModal;
finally
Free;
end;
end;
however, this does not seem to be sufficient, as I experience crashes when navigating through the tree view and tabs of the ChartEditor. Also, the appearance of the ChartEditor is a bit different than the one shown using the TChartEditor component. The background color of the windows/pages of the dialog seems to be affected by our themeing when using the EditChart() method, making the non-transparent labes (TLabel) very apparent with their grey background color, whereas the dialog from the TChartEditor will use a grey background.
Should I create an instance of TChartEditor rather than calling EditChart() if I want to use tree view, or do you have another suggestion?
Thanks in advance
A. Giailoglou