Hello
I am trying to inhibit zooming on the time line as it seems confusing when using with fingers. So, I set
Range.AllowZooming:=False;
Range.AllowPartialZooming:=False;
Yet when I drag a TimelineIndicator.Annotation to the left and beyond the Range Minimum time, the timeline zooms in. Am I doing something wrong?
Thanks
Doug
Can you post us the complete code initialization code, including the timeline range?
Here is how I initialize:
I set start and end times equal to the min and max with SetTimeLineRange because right now I don't want the timeline to scroll.
Self.AdvSmoothTimeLine1.Parent:=AdvSmoothPanel1;
Self.AdvSmoothTimeLine1.Left:=50;
Self.AdvSmoothTimeLine1.Width:=800;
Self.AdvSmoothTimeLine1.Top:=50;
Self.AdvSmoothTimeLine1.Height:=600;
Self.AdvSmoothTimeLine1.SetTimeLineRange(Self.MStartTime, Self.MEndTime, MStartTime, MEndTime);
Self.AdvSmoothTimeLine1.TimeLineBar.Height:=20;
Self.AdvSmoothTimeLine1.Range.AllowZooming:=False;
Self.AdvSmoothTimeLine1.Range.AllowPartialZooming:=False;
Self.AdvSmoothTimeLine1.RangeAppearance.DivisionFont.Name:='Arial';
Self.AdvSmoothTimeLine1.RangeAppearance.DivisionFont.Size:=14;
case GTimeScale of
300: //5 min
begin
Self.AdvSmoothTimeLine1.Range.Divisions:=1;
Self.AdvSmoothTimeLine1.RangeAppearance.DivisionFormat:='hh:nn';
Self.AdvSmoothTimeLine1.Range.SubDivisions:=5;
Self.AdvSmoothTimeLine1.RangeAppearance.SubDivisionFont:=Self.AdvSmoothTimeLine1.RangeAppearance.DivisionFont;
Self.AdvSmoothTimeLine1.RangeAppearance.SubDivisionFont.Size:=10;
Self.AdvSmoothTimeLine1.RangeAppearance.SubdivisionFormat:='hh:nn';
Self.AdvSmoothTimeLine1.Left:=50;
Self.AdvSmoothTimeLine1.Width:=800;
Self.AdvSmoothTimeLine1.Top:=50;
Self.AdvSmoothTimeLine1.Height:=600;
Self.AdvSmoothTimeLine1.SetTimeLineRange(Self.MStartTime, Self.MEndTime, MStartTime, MEndTime);
Self.AdvSmoothTimeLine1.TimeLineBar.Height:=20;
Self.AdvSmoothTimeLine1.Range.AllowZooming:=False;
Self.AdvSmoothTimeLine1.Range.AllowPartialZooming:=False;
Self.AdvSmoothTimeLine1.RangeAppearance.DivisionFont.Name:='Arial';
Self.AdvSmoothTimeLine1.RangeAppearance.DivisionFont.Size:=14;
case GTimeScale of
300: //5 min
begin
Self.AdvSmoothTimeLine1.Range.Divisions:=1;
Self.AdvSmoothTimeLine1.RangeAppearance.DivisionFormat:='hh:nn';
Self.AdvSmoothTimeLine1.Range.SubDivisions:=5;
Self.AdvSmoothTimeLine1.RangeAppearance.SubDivisionFont:=Self.AdvSmoothTimeLine1.RangeAppearance.DivisionFont;
Self.AdvSmoothTimeLine1.RangeAppearance.SubDivisionFont.Size:=10;
Self.AdvSmoothTimeLine1.RangeAppearance.SubdivisionFormat:='hh:nn';
end;
... etc.
Hi,
Can you try by setting
Can you try by setting AdvSmoothTimeLine1.Range.AllowScrolling
:= False ?<o:p></o:p>