How to add resources to the chart.

Use the AddResource method of the chart. The optional colour and style arguments become the defaults for allocations of this resource, although it is possible to override the defaults for each allocation if desired.

  r1, r2: TssResource;
  r1 := RAC.AddResource('My Resource', clRed, rsBlockArrow);
  // now use r1 to add allocations or change the
  // properties of "My Resource"

  // add a second resource
  r2 := RAC.AddResource('My Other Resource', clBlue);