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 >>

TAdvSmoothTimeLine
Adding a section

An indicator is limited to one position property while the Section can be stretched over a timezone between a starttime and endtime.

Example:

with AdvSmoothTimeLine1.TimeLineSections.Add do 
begin 
  StartTime := AdvSmoothTimeLine1.Range.RangeFrom + ((AdvSmoothTimeLine1.Range.RangeTo - AdvSmoothTimeLine1.Range.RangeFrom) / AdvSmoothTimeLine1.Range.SubDivisions) * 3; 
  EndTime := AdvSmoothTimeLine1.Range.RangeFrom + ((AdvSmoothTimeLine1.Range.RangeTo - AdvSmoothTimeLine1.Range.RangeFrom) / AdvSmoothTimeLine1.Range.SubDivisions) * 5;
  Hint := 'This is a new Section between March and June'; 
end;
Result:

The Section hints can be customized with the HintFill property on Section level. There are also DefaultHintfill, DefaultIndicator and DefaultSectionFill to apply when a new indicator or section is added.