TLegendScrollBar problems
Posted: Fri Aug 26, 2005 8:47 am
Hi again.
I'm having problems adding the TLegendScrollBar at runtime.
Creation:
Self.FLegendScrollBar := TLegendScrollBar.Create(self);
Self.FLegendScrollBar.ParentChart := self;
Self.Tools.Add(Self.FLegendScrollBar);
Segfaults when the legend becomes visible (when I insert the first line) in:
procedure TLegendScrollBar.LegendCalcSize(Sender:TCustomChartLegend; var ASize:Integer);
begin
if Active and ShouldDraw(R) then // SegFault
Inc(ASize,Size+1);
end;
R = (-14680065, -14680065, -14680065, -14680065, (-14680065, -14680065), (-14680065, -14680065))
Anyone here that have had simililar problems or know how to fix this?
Regards
Frode
I'm having problems adding the TLegendScrollBar at runtime.
Creation:
Self.FLegendScrollBar := TLegendScrollBar.Create(self);
Self.FLegendScrollBar.ParentChart := self;
Self.Tools.Add(Self.FLegendScrollBar);
Segfaults when the legend becomes visible (when I insert the first line) in:
procedure TLegendScrollBar.LegendCalcSize(Sender:TCustomChartLegend; var ASize:Integer);
begin
if Active and ShouldDraw(R) then // SegFault
Inc(ASize,Size+1);
end;
R = (-14680065, -14680065, -14680065, -14680065, (-14680065, -14680065), (-14680065, -14680065))
Anyone here that have had simililar problems or know how to fix this?
Regards
Frode