TResourceAllocationChart

TResourceAllocationChart represents the whole chart.
AnyObject PropertyPublished TObject
A reference to any TObject that you like. The AnyObject property is provided for the convenience of storing additional information for special needs in an application. If the OwnsAnyObject property is true, the object will be deleted when the chart is destroyed.
Bitmap PropertyPublicRead Only TBitmap
The off-screen bitmap containing the chart image.
ChartAppearance PropertyPublished TResourceAllocationChartAppearance
A member holding properties that control the appearance of the chart.
Count PropertyPublicRead Only integer
The number of resources.
EndAt PropertyPublished TDateTime
The end date/time of the chart.
FindAvailableResources FunctionPublic (StartDateTime, EndDateTime: TDateTime; List: TList): integer;
Populates a list with resources that have availability for the specified period.
FindAvailableSlot FunctionPublic function FindAvailableSlot(RequiredResources: TList; StartDate, EndDate, StartTime, EndTime, TimeIncrement, Duration: TDateTime): TDateTime;

function FindAvailableSlot(RequiredResources: TList; StartDate, EndDate, StartTime, EndTime, TimeIncrement, Duration: TDateTime; Days: TDays): TDateTime;
Finds a datetime when all the listed resources are available. Searches between the start and end dates specified, for availability between the start and end times specified.
FindNearestSlot FunctionPublic (point: TPoint): TResourceAllocation
Finds the allocation nearest to the specified position. Returns nil if there are no allocations..
FindSlot FunctionPublic (point: TPoint): TResourceAllocation
Finds the allocation displayed at the specified position. Returns nil if none.
FirstDisplayedIndex PropertyPublic integer
The index of the top-most resource currently being displayed. This property can be set to scroll the display. 
FirstDisplayedResource PropertyPublic TResource
The top-most resource currently being displayed. This property can be set to scroll the display. 
HintStyle PropertyPublished TDateTimeStyle
The style of any automatically generated hints. Defaults to dtDateAndTime.
LastDisplayedIndex PropertyPublic integer
The index of the bottom-most resource currently being displayed. This property can be set to scroll the display. 
LastDisplayedResource PropertyPublic TResource
The bottom-most resource currently being displayed. This property can be set to scroll the display. 
MinimumDrag PropertyPublished integer
The minimum drag, in pixels, that is recognised. Any drag less than this is ignored.
NumDisplayedResources PropertyPublicRead Only integer
The number of resources currently being displayed. 
Options PropertyPublished TResourceAllocationChartOptions
Various options that control some aspects of the charts bahaviour.
OwnsAnyObject PropertyPublished boolean
Whether the object referenced by the AnyObject property is owned by this chart. If the object is owned, it is deleted when the chart is destroyed.
PlotRect PropertyPublicRead Only TRect
The area of the plot.
RefreshBitmap ProcedurePublic TColor
Causes the bitmap to be redrawn. This can be useful if the bitmap contains some time-dependant element added in an owner-draw routine.
Resources PropertyPublicRead Only [indx: integer]: TResource
An array of the resources.
RoundTo PropertyPublished double
When dragging or stretching allocations, the new start and/or end date/time are rounded to this interval.
SelectAllocationCount Property integer
The number of selected allocations.
SelectAllocations Property [indx: integer]: TResourceAllocation
A list if the selected allocations. To select an allocation, set its Selected property.
SizingHandleWidth PropertyPublished integer
The size of the invisible sizing handle area at the end of each allocation. If the user starts to drag while over this sizing handle, then the allocation is expanded or contracted instead of moved.
StartAt PropertyPublished TDateTime
The start date/time of the chart.
Sort ProcedurePublic
Sorts the resources into alphabetical order.
Sort ProcedurePublic (CompareFunction: TResourceCompareFunction)
Sorts the resources. The user-specified compare function can use any properties of the resources to determine their order.
VerticalPageSize PropertyPublicRead Only integer
The number of resources that will fit onto the display using the current configuration.
OnAdjustDragRectEvent PropertyPublished TAdjustDragRectEvent
An event that allows the allocation drag or stretch rects to be adjusted. This would only be necessary if you were using owner-draw allocations and the default rect was not appropriate.
OnAdjustPlotRectEvent PropertyPublished TAdjustPlotRectEvent
An event that allows the plot rectangle to be adjusted. This could be to allow more room for owner-draw date labels or resource names etc.
OnAfterPaint PropertyPublished TNotifyEvent
An event invoked after the bitmap has been painted to the canvas.
OnAllocationAutoHint PropertyPublished TAllocationAutoHintEvent
An event invoked before an automatically generated allocation hint is shown. The hint string may be modified by the event handler.
OnAllocationclick PropertyPublished TAllocationEvent
An event invoked when an allocation is clicked.
OnAllocationDblClick PropertyPublished TAllocationEvent
An event invoked when an allocation is double-clicked.
OnAllocationDrag PropertyPublished TAllocationDragEvent
An event invoked when an allocation is dragged. The StartDateTime and EndDateTime arguments may be adjusted to limit the extent of the drag.
OnAllocationDragCancel PropertyPublished TAllocationEvent
An event invoked when an allocation is dragged then dropped in its original location.
OnAllocationDragEnd PropertyPublished TAllocationEvent
An event invoked when an allocation is dragged then dropped in a new location.
OnAllocationDragEndQuery PropertyPublished TAllocationDragQueryEvent
An event invoked when an allocation is dragged then dropped in a new location, but before the change is made. It gives a last chance to cancel the operation.
OnAllocationDragOverResource PropertyPublished TAllocationDragOverResourceEvent
An event invoked when an allocation from one resource is dragged over another resource. The StartDateTime and EndDateTime arguments can be altered to limit the drag extent, or the Allow argument can be set to false to prevent the drag operation. Note: the OnAllocationSwitchResource event is signalled if the allocation is dropped onto the resource.
OnAllocationDragStart PropertyPublished TAllocationDragStartEvent
An event invoked when an allocation is first dragged.
OnAllocationDraw PropertyPublished TAllocationDrawEvent
An event invoked before an allocation is drawn. It allows the allocation to be drawn with specific colours.
OnAllocationRightClick PropertyPublished TAllocationEvent
An event invoked when an allocation is right-clicked.
OnAllocationSelectionChange PropertyPublished TAllocationEvent
An event invoked when the selected property of an allocation is changed.
OnAllocationStretch PropertyPublished TAllocationDragEvent
An event invoked when an allocation is dragged. The StartTime and EndTime arguments may be adjusted to limit the extent of the stretch.
OnAllocationStretchCancel PropertyPublished TAllocationEvent
An event invoked when an allocation is stretched, but the stretch is then cancelled.
OnAllocationStretchEnd PropertyPublished TAllocationEvent
An event invoked when an allocation is stretched, after the change has been made.
OnAllocationStretchEndQuery PropertyPublished TAllocationDragQueryEvent
An event invoked when an allocation is stretched, but before the change has been made. It gives a last chance to cancel the operation.
OnAllocationStretchStart PropertyPublished TAllocationDragQueryEvent
An event invoked when an allocation is first stretched.
OnAllocationSwitchResource PropertyPublished TAllocationSwitchResourceEvent
An event invoked when an allocation is dropped onto a different resource.
OnAllocationSwitchResourceQuery PropertyPublished TAllocationSwitchResourceQueryEvent
An event invoked when an allocation is dropped onto a different resource, but before the change is made. It gives a last chance to cancel the operation.
OnBeforePaint PropertyPublished TNotifyEvent
An event invoked before the bitmap has been painted to the canvas.
OnChange PropertyPublished TNotifyEvent
An event invoked when the chart has changed.
OnDateRangeChange PropertyPublished TNotifyEvent
An event invoked when the chart start and/or end date/time has changed.
OnDragPlot PropertyPublished TDragPlotEvent
An event invoked when the chart is dragged. The StartTime and EndTime arguments may be adjusted to limit the extent of the drag.
OnDragPlotEnd PropertyPublished TNotifyEvent
An event invoked when the chart dragging ends.
OnDragPlotStart PropertyPublished TDragPlotStartEvent
An event invoked when the chart dragging starts.
OnDrawDateLabel PropertyPublished TGetDateTimeEvent
If this event is set, then the DateLabelBase and DateLabelInterval properties are not used. Instead, this event handler is called to return the date/time of each label. It is called repeatedly until it returns a date/time that is outside the chart range (such as 0.0) This event is most useful when the date labels are required to be at a non-regular interval, such as on the first day of each month.
OnDrawDateLine PropertyPublished TGetDateTimeEvent
If this event is set, then the DateLineBase and DateLineInterval properties are not used. Instead, this event handler is called to return the date/time of each label. It is called repeatedly until it returns a date/time that is outside the chart range (such as 0.0) This event is most useful when the date lines are required to be at a non-regular interval, such as on the first day of each month.
OnDrawProgress PropertyPublished TDrawProgressEvent
An event invoked several times during the drawing process. It allows custom graphics to be added at different stages in the drawing process. For example, to add graphics behind the allocations, but on top of the background.
OnDrawResourceName PropertyPublished TDrawResourceNameEvent
An event invoked before the name of the resource is displayed. This event allows you to control the colour of the text.
OnGetDateTimeLabelText PropertyPublished TGetDateTimeLableEvent
Allows bespoke date and time labels.
OnGetPlotBackground PropertyPublished TGetPlotBackgroundEvent
This event to allows the irregular colouring of the plot background. For example, to allow weekends to be in a different colour. 
OnResourceNameClick PropertyPublished TResourceEvent
An event invoked when a resource name is clicked.
OnResourceNameDblClick PropertyPublished TResourceEvent
An event invoked when a resource name is double-clicked.
OnResourceNameAutoHint  PropertyPublished TResourceNameAutoHintEvent
An event invoked when the mouse is over a resource name. The Hint argument must be set to cause a hint to appear.
OnResourceNameRightClick PropertyPublished TResourceEvent
An event invoked when a resource name is right-clicked.
OnRightClick PropertyPublished TNotifyEvent
An event invoked when the chart is right-clicked.
OnOwnerDrawAllocation PropertyPublished TAllocationOwnerDrawEvent
An event invoked to draw an allocation bar when the racOwnerDrawAllocations option is set.
OnOwnerDrawDateLabel PropertyPublished TOwnerDrawDateLabelEvent
An event invoked to draw a date label when the racOwnerDrawDateLabels option is set.
OnOwnerDrawResourceName PropertyPublished TOwnerDrawResourceNameEvent
An event invoked to draw a resource name when the racOwnerDrawResourceNames option is set.
OnPlotRectChange PropertyPublished TNotifyEvent
An event invoked when the size or location of the plot area changes.
AddResource FunctionPublic (ResourceName: string; Color: TColor = clBtnFace; Style: TResourceDisplayStyle = rsLineArrow): TResource
This function creates a new resource and adds it to the chart. It returns a reference to the newly created resource.
BeginUpdate ProcedurePublic ()
Starts buffering updates. One call to EndUpdate should be called for each call to BeginUpdate.
Clear ProcedurePublic ()
Deletes all resources and allocations.
DateTimeToX FunctionPublic (dt: TDateTime): integer
Converts a TDateTime to a chart x-coordinate.
DeselectAllAllocations ProcedurePublic ()
Deselects all selected allocations.
EndUpdate ProcedurePublic ()
Stops buffering updates. One call to EndUpdate should be called for each call to BeginUpdate.
ExchangeResources ProcedurePublic (Resource1, Resource2: TResource)

or

(ResourceIndex1, ResourceIndex2: integer)
Exchanges two resources so that they swap position in the chart.
FindResource FunctionPublic FindResource(aResourceName: string; CaseSensitive: boolean = false): TResource
Returns the resource with the specified name, or nil if there is no resource.
FindResourceFromY FunctionPublic (Y: integer; Strict: boolean = true): TResource
Returns the resource displayed at a specified Y position, or nil if there is no resource. If Strict is false, then it will return the nearest resource.
IndexOf FunctionPublic (Resource: TResource): integer
Returns the index of a particular resource, or -1 if the resource is not found.
InsertResource FunctionPublic (Place: integer; ResourceName: string; Color: TColor = clBtnFace; Style: TResourceDisplayStyle = rsLineArrow): TResource
This function creates a resource and inserts it into the chart at a specific index. It returns a reference to the newly created resource.
Invalidate ProcedurePublic ()
Invalidates the chart area causing a re-paint.
PaintTo FunctionPublic (Canvas: TCanvas; Rct: TRect; TopIndex: integer): integer
FunctionPublic (Canvas: TCanvas; Rct: TRect; TopIndex: integer; Appearance: TResourceAllocationChartAppearance): integer;
Draws the chart to the specified rectangle on the specified canvas. Optionally, using the specified appearance instance. Returns the index of the last resource displayed.
ScrollChart ProcedurePublic (Increment: TDateTime)
Scrolls the chart by the specified amount. Use negative increments to scroll to an earlier date/time range.
SetDateTime ProcedurePublic (StartAt, EndAt: TDateTime)
Sets the StartAt and EndAt properties in a single operation.
SortAllocations FunctionPublic ()
Sorts the allocations into increasing date/time order for all resources.
XToDateTime FunctionPublic (x: integer): TDateTime
Converts a chart x-coordinate to the corresponding date/time.

In addition, the following published properties are inherited from TCustomPanel.

Align Anchors BevelInner BevelOuter BevelWidth
BorderStyle BorderWidth Constraints Ctl3D DragCursor
DragKind DragMode Hint ParentCtl3D ParentShowHint
PopupMenu ShowHint OnCanResize OnClick OnConstrainedResize
OnDblClick OnDockDrop OnDockOver OnDragDrop OnDragOver
OnEndDock OnEndDrag OnEnter OnExit OnGetSiteInfo
OnMouseDown OnMouseMove OnMouseUp OnMouseWheel OnMouseWheelDown
OnMouseWheelUp OnResize OnStartDock OnStartDrag OnUnDock

TResource

TResource represents a single resource that can be allocated. There can be none, or many, resources on a TResourceAllocationChart.
AnyObject PropertyPublic TObject
A reference to any TObject that you like.  The AnyObject property is provided for the convenience of storing additional information for special needs in an application. If the OwnsAnyObject property is true, the object will be deleted when the resource is destroyed.
Allocations PropertyPublicRead Only [indx: integer]: TResourceAllocation
An array giving access to the allocations for the resource.
Color PropertyPublic TColor
The default colour for allocations of this resource.
Count PropertyPublicRead Only integer
The number of allocations for this resource.
DisplayRect PropertyPublic TRect
The rectangle used to display allocations for this resource.
Name PropertyPublic string
The name of the resource.
OwnsAnyObject PropertyPublic boolean
Whether the object referenced by the AnyObject property is owned by this resource. If the object is owned, it is deleted when the resource is destroyed.
ResourceChart PropertyPublicRead Only TCustomResourceAllocationChart
The chart this resource belongs to.
Style PropertyPublic TResourceDisplayStyle
The default display style for allocations of this resource.
Tag PropertyPublic longint
Tag has no predefined meaning. The Tag property is provided for the convenience of storing additional integer value or pointer information for special needs in an application.
AddSlot FunctionPublic (StartAt, EndAt: TDateTime): TResourceAllocation
Adds a new allocation slot between the times specified.
BeginUpdate ProcedurePublic ()
Starts buffering updates. One call to EndUpdate should be called for each call to BeginUpdate.
Clear ProcedurePublic ()
Deletes all allocations for this resource.
EndUpdate ProcedurePublic ()
Stops buffering updates. One call to EndUpdate should be called for each call to BeginUpdate.
FindFreeSlot FunctionPublic (MinDateTime, MaxDateTime, Span: TDateTime; Increment: TDateTime = -1): TDateTime
Finds the first free slot with the specified span, between the two date/times.
FindSlotAt ProcedurePublic (DateTime: TDateTime): TResourceAllocation
Returns the allocation at a particular time, or nil if none.
FindSlotFromPoint FunctionPublic (point: TPoint): TResourceAllocation
Finds the allocation displayed at the specified position. Returns nil if none.
IndexOf FunctionPublic (Slot: TResourceAllocation): integer
Returns the index of a particular allocation, or -1 if the allocation is not found.
IsSlotFree FunctionPublic (StartAt, EndAt: TDateTime; IgnoreSlot: TResourceAllocation = nil): boolean
Determines whether a particular allocation slot is free. Can optionally ignore an allocation when checking.
SortAllocations FunctionPublic ()
Sorts the allocations into increasing date/time order.

To delete a TResource, simply call its Free method. This will automatically delete it from the TResourceAllocationChart.

TResourceAllocation

TResourceAllocation represents a single allocation(or "slot") for a resource. Each resource can be allocated many times, but each allocation must be for a unique time period.
AnyObject PropertyPublic TObject
A reference to any TObject that you like.  The AnyObject property is provided for the convenience of storing additional information for special needs in an application. If the OwnsAnyObject property is true, the object will be deleted when the allocation is destroyed.
Color PropertyPublic TColor
The colour of this allocation.
DisplayRect PropertyPublicRead Only TRect
The bounding rectangle for this allocation when displayed on the chart.
EndAt PropertyPublic TDateTime
The end date/time for the allocation.
OwnsAnyObject PropertyPublic boolean
Whether the object referenced by the AnyObject property is owned by this allocation. If the object is owned, it is deleted when the allocation is destroyed.
Resource PropertyPublicRead Only TResource
The resource this allocation belongs to.
Selected PropertyPublic TResource
The resource this allocation belongs to.
StartAt PropertyPublic TDateTime
The start date/time for the allocation.
Style PropertyPublic TResourceDisplayStyle
The display style of this allocation.
Tag PropertyPublic longint
Tag has no predefined meaning. The Tag property is provided for the convenience of storing additional integer value or pointer information for special needs in an application.
BeginUpdate ProcedurePublic ()
Starts buffering updates. One call to EndUpdate should be called for each call to BeginUpdate.
EndUpdate ProcedurePublic ()
Stops buffering updates. One call to EndUpdate should be called for each call to BeginUpdate.
SetDateTime ProcedurePublic (StartAt, EndAt: TDateTime)
Sets the StartAt and EndAt properties in a single operation.

To delete a TResourceAllocation, simply call its Free method. This will automatically delete it from the TResource.

TResourceAllocationChartAppearance

TResourceAllocationChartAppearance is a helper class that holds properties that determine the apperance of the chart. You can create different instances of this class to, for example, cause printed output to look different from screen output.
Color PropertyPublished TColor
The colour of the outer part of the chart underneath the resource names and date labels..
DateFormat PropertyPublished string
The format used for the date labels. Leave blank to use the default regional setting short date format.
DateLabelBase PropertyPublished TDateTime
DateLabelBase allows the position of the date/time labels to be specified. Use in conjunction with DateLabelInterval to control the exact position of the date/time labels. Set DateLabelBase to 0 to revert to the automatic positioning of the labels.

Note: DateLabelBase and DateLabelInterval are not used if the OnDrawDateLabel event is set.

DateLabelInterval PropertyPublished double
The interval between date/time labels.

Note: DateLabelBase and DateLabelInterval are not used if the OnDrawDateLabel event is set.

DateLineBase PropertyPublished TDateTime
DateLineBase allows the position of the date/time lines to be specified. Use in conjunction with DateLineInterval to control the exact position of the date/time lines. Set DateLineBase to 0 to revert to the automatic positioning of the lines.

Note: DateLineBase and DateLineInterval are not used if the OnDrawDateLine event is set.

DateLineColor PropertyPublished TColor
The colour of the vertical lines drawn at date/time labels.
DateLineInterval PropertyPublished double
The interval between date/time lines. Set it to 0.0 to draw date/time lines at the same location as the date/time labels.

Note: DateLineBase and DateLineInterval are not used if the OnDrawDateLine event is set.

DateLineStyle PropertyPublished TPenStyle
The pen style used to draw the date marker lines. Defaults to psDot. The lines are not drawn if the style is set to psClear.
DateTimeFont PropertyPublished TFont
The font of the date/time labels.
DateTimeStyle PropertyPublished TDateTimeStyle
The style of date/time labels. Defaults to dtDateAndTime.
PlotBackColor PropertyPublished TColor
The colour of the plot background area.
PlotBackAlternateColor PropertyPublished TColor
The PlotBackColor and PlotBackAlternateColor allow the plot background to be displayed in bands of alternate colours. The interval, or span of each coloured band is determined by PlotBackAlternateInterval.

Background banding is not displayed if PlotBackColor and PlotBackAlternateColor are the same, or if PlotBackAlternateInterval is 0.
PlotBackAlternateInterval PropertyPublished double
The interval used for each band of colour.
PlotBorderColor PropertyPublished TColor
The colour of the lines making up the rectangle surrounding the actual chart area.
ResourceBottomMarginRows PropertyPublished TIntegerZeroOrGrearter
The number of "rows" to leave clear at the bottom of the chart.
ResourceLineColor PropertyPublished TColor
The colour of the lines drawn behind resources.
ResourceLineStyle PropertyPublished TPenStyle
The style of the lines drawn behind resources. The lines are not drawn if the style is set to psClear. The style psSolid is always used if the line width is greater than 1.
ResourceLineWidth PropertyPublished TIntegerZeroOrGrearter
The width of the lines drawn behind resources. The lines are not drawn if the width is set to 0.
ResourceNameAlignment PropertyPublished TAlignment
The alignment of the resource names.
ResourceNameFont PropertyPublished TFont
The font used to display the resource names.
ResourceNameWidth PropertyPublished integer
The width of the resource name column. Set to 0 to automatically determine the width, or less than zero to prevent the display of the resource names.
ResourceSeparatorLineColor PropertyPublished TColor
The colour of the lines drawn between adjacent resources.
ResourceSeparatorLineStyle PropertyPublished TPenStyle
The style of the lines drawn between adjacent resources. The lines are not drawn if the style is set to psClear. The style psSolid is always used if the line width is greater than 1.
ResourceSeparatorLineWidth PropertyPublished TIntegerZeroOrGrearter
The width of the lines drawn between adjacent resources. The lines are not drawn if the width is set to 0.
ResourceTopMarginRows PropertyPublished TIntegerZeroOrGrearter
The number of "rows" to leave clear at the top of the chart.
RowGap PropertyPublished TIntegerZeroOrGrearter
The vertical gap between rows.
RowHeight PropertyPublished TIntegerZeroOrGrearter
The height of the allocation bars. Set to zero to use a value based on the height of the currently selected font.
ShadowColor PropertyPublished TColor
The colour of the allocation shadows.
ShadowDepth PropertyPublished TIntegerZeroOrGrearter
The depth of the allocation shadows.
TimeFormat PropertyPublished string
The format used for the time labels. Leave blank to use the default regional setting time format.
Assign ProcedurePublic (other: TResourceAllocationChartAppearance)
Starts buffering updates. One call to EndUpdate should be called for each call to BeginUpdate.
BeginUpdate ProcedurePublic ( )
Starts buffering updates. One call to EndUpdate should be called for each call to BeginUpdate.
EndUpdate ProcedurePublic ( )
Stops buffering updates. One call to EndUpdate should be called for each call to BeginUpdate.
SetDefaults ProcedurePublic ( )
Restores the default settings.

Types and Exceptions

TDragPlotStartEvent procedure(Sender: TObject; var AllowDrag: boolean) of object
TDragPlotEvent procedure(Sender: TObject; var StartDateTime, EndDateTime: TDateTime) of object
TResourceEvent procedure(Sender: TObject; Resource: TResource) of object
TAllocationAutoHintEvent procedure(Sender: TObject; Resource: TResource; Allocation: TResourceAllocation; StartDateTime, EndDateTime: TDateTime; ToResource: TResource; var Hint: string) of object
TAllocationEvent procedure(Sender: TObject; Resource: TResource; Allocation: TResourceAllocation) of object
TAllocationDragEvent procedure(Sender: TObject; Resource: TResource; Allocation: TResourceAllocation; var StartDateTime, EndDateTime: TDateTime; var AllowDrag: boolean) of object
TAllocationDragStartEvent procedure(Sender: TObject; Resource: TResource; Allocation: TResourceAllocation; StartDateTime, EndDateTime: TDateTime; var AllowDrag: boolean) of object
TAllocationDragQueryEvent procedure(Sender: TObject; Resource: TResource; Allocation: TResourceAllocation; var AllowDrag: boolean) of object
TAllocationDrawEvent procedure(Sender: TObject; Resource: TResource; Allocation: TResourceAllocation; Pen: TPen; Brush: TBrush) of object
TAllocationOwnerDrawEvent procedure(Sender: TObject; Resource: TResource; Allocation: TResourceAllocation; Canvas: TCanvas; Rct: TRect) of object
TOwnerDrawDateLabelEvent procedure(Sender: TObject; Canvas: TCanvas; x: integer; DateTime: TDateTime) of object
TOwnerDrawResourceNameEvent procedure(Sender: TObject; Resource: TResource; Canvas: TCanvas; Rct: TRect) of object
TDrawProgressEvent procedure(Sender: TObject; Canvas: TCanvas; DrawRect: TRect; Progress: TDrawProgress) of object
TDrawResourceNameEvent procedure(Sender: TObject; Resource: TResource; var Color: TColor) of object
TGetDateTimeEvent procedure(Sender: TObject; var DateTime: TDateTime) of object
TGetDateTimeLabelEvent procedure(Sender: TObject; DateTime: TDateTime; var DateText, TimeText: string) of object;
TGetPlotBackgroundEvent procedure(Sender: TObject; Canvas: TCanvas; StartDateTime, EndDateTime: TDateTime; var Color: TColor) of object
TAllocationDragOverResourceEvent procedure(Sender: TObject; FromResource, ToResource: TResource; Allocation: TResourceAllocation; var StartDateTime, EndDateTime: TDateTime; var AllowDrag: boolean) of object
TAllocationSwitchResourceEvent procedure(Sender: TObject; FromResource, ToResource: TResource; Allocation: TResourceAllocation) of object
TAllocationSwitchResourceQueryEvent procedure(Sender: TObject; FromResource, ToResource: TResource; Allocation: TResourceAllocation; StartDateTime, EndDateTime: TDateTime; var AllowDrag: boolean) of object
TAdjustDragRectEvent procedure(Sender: TObject; Allocation: TResourceAllocation; var Rct: TRect) of object
TAdjustPlotRectEvent procedure(Sender: TObject; Canvas: TCanvas; var PlotRect: TRect) of object
TResourceNameAutoHintEvent procedure(Sender: TObject; Resource: TResource; var Hint: string) of object
TResourceCompareFunction function(Resource1, Resource2: TResource): integer of object
TResourceDisplayStyle rsBlock Block
rsBlockArrow Block Arrow
rsLineArrow Line Arrow
rsUpCalliper Up Calliper
rsDownCalliper Down Calliper
rsRoundRect Round Rect
rsEllipse Ellipse
rsPointedBlock Pointed Block
rsLine Line
TDateTimeStyle dtTimeOnly, dtDateOnly, dtTimeAndDate, dtDateAndTime, dtNone, dtFirstDateAndTime, dtFirstTimeAndDate, dtOwnerDraw
TDrawProgress dpBeforeStart, dpFrameDone, dpBackgroundDone, dpLabelsDone, dpShadowsDone, dpAllocationsDone, dpAllDone
TResourceAllocationChartOption racAllowDragAllocation Whether the user is allowed to drag allocations.
racAllowDragScroll Whether the user is allowed to drag the chart to scroll it.
racAllowAllocationSwitchResources Whether the user is allowed to drag allocations from one resource to another.
racAllowStretchAllocation Whether the user is allowed to re-size allocations.
racAutoHint Whether the hint should be automatically generated when the mouse is over an allocation, or when an allocation is dragged or stretched. The hint is of the form:
StartTime - EndTime (TimeInterval)
racShowFocusRect Whether the focus rectangle is displayed when the control has focus.
racWantArrowKeys Whether the cursor arrow control keys should be trapped by the component. The arrow keys are often used by the form to move between controls. 
racWantTabKeys Whether the tab key should be trapped by the component. The tab key is often used by the form to move between controls.
racDateAxisAtTop Whether the date axis should be labelled at the top of the chart.
racDateAxisAtBottom Whether the date axis should be labelled at the bottom of the chart.
racOwnerDrawAllocations Whether allocations should be owner-drawn. The OnOwnerDrawAllocation event is called to draw the allocation.
racOwnerDrawDateLabels Whether date/time labels should be owner-drawn. The OnOwnerDrawDateLabel event is called to draw the allocation.
racOwnerDrawResourceNames Whether resource names should be owner-drawn. The OnOwnerDrawResourceName event is called to draw the allocation.
racMultiSelect Whether multiple allocations can be selected. A selected allocation is not displayed any differently from an un-selected allocation - unless the OnAllocationDraw event handler is set to return different pen and/or brush attributes for selected allocations.
racSortAllocations Whether allocations should be maintained in increasing Date/Time order.
racScrollBarOnlyIfNeeded Only show the scroll bar if it is required, otherwise always show the scroll bar.
TResourceAllocationChartOptions set of TResourceAllocationChartOption
TDay (daSunday, daMonday, daTuesday, daWednesday, daThursday, daFriday, daSaturday)
TDays Set of TDay
TIntegerZeroOrGrearter 0 .. MaxInt
EBadValueException An exception raised if an end date/time is set before a start date/time.
Last Update
2008-06-29