TResourceAllocationChart
TResourceAllocationChart represents the whole chart.| AnyObject | 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 | TBitmap | |
| The off-screen bitmap containing the chart image. | ||
| ChartAppearance | TResourceAllocationChartAppearance | |
| A member holding properties that control the appearance of the chart. | ||
| Count | integer | |
| The number of resources. | ||
| EndAt | TDateTime | |
| The end date/time of the chart. | ||
| FindAvailableResources | (StartDateTime, EndDateTime: TDateTime; List: TList): integer; | |
| Populates a list with resources that have availability for the specified period. | ||
| FindAvailableSlot | 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 | (point: TPoint): TResourceAllocation | |
| Finds the allocation nearest to the specified position. Returns nil if there are no allocations.. | ||
| FindSlot | (point: TPoint): TResourceAllocation | |
| Finds the allocation displayed at the specified position. Returns nil if none. | ||
| FirstDisplayedIndex | integer | |
| The index of the top-most resource currently being displayed. This property can be set to scroll the display. | ||
| FirstDisplayedResource | TResource | |
| The top-most resource currently being displayed. This property can be set to scroll the display. | ||
| HintStyle | TDateTimeStyle | |
| The style of any automatically generated hints. Defaults to dtDateAndTime. | ||
| LastDisplayedIndex | integer | |
| The index of the bottom-most resource currently being displayed. This property can be set to scroll the display. | ||
| LastDisplayedResource | TResource | |
| The bottom-most resource currently being displayed. This property can be set to scroll the display. | ||
| MinimumDrag | integer | |
| The minimum drag, in pixels, that is recognised. Any drag less than this is ignored. | ||
| NumDisplayedResources | integer | |
| The number of resources currently being displayed. | ||
| Options | TResourceAllocationChartOptions | |
| Various options that control some aspects of the charts bahaviour. | ||
| OwnsAnyObject | 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 | TRect | |
| The area of the plot. | ||
| RefreshBitmap | 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 | [indx: integer]: TResource | |
| An array of the resources. | ||
| RoundTo | double | |
| When dragging or stretching allocations, the new start and/or end date/time are rounded to this interval. | ||
| SelectAllocationCount | integer | |
| The number of selected allocations. | ||
| SelectAllocations | [indx: integer]: TResourceAllocation | |
| A list if the selected allocations. To select an allocation, set its Selected property. | ||
| SizingHandleWidth | 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 | TDateTime | |
| The start date/time of the chart. | ||
| Sort | ||
| Sorts the resources into alphabetical order. | ||
| Sort | (CompareFunction: TResourceCompareFunction) | |
| Sorts the resources. The user-specified compare function can use any properties of the resources to determine their order. | ||
| VerticalPageSize | integer | |
| The number of resources that will fit onto the display using the current configuration. | ||
| OnAdjustDragRectEvent | 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 | 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 | TNotifyEvent | |
| An event invoked after the bitmap has been painted to the canvas. | ||
| OnAllocationAutoHint | TAllocationAutoHintEvent | |
| An event invoked before an automatically generated allocation hint is shown. The hint string may be modified by the event handler. | ||
| OnAllocationclick | TAllocationEvent | |
| An event invoked when an allocation is clicked. | ||
| OnAllocationDblClick | TAllocationEvent | |
| An event invoked when an allocation is double-clicked. | ||
| OnAllocationDrag | 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 | TAllocationEvent | |
| An event invoked when an allocation is dragged then dropped in its original location. | ||
| OnAllocationDragEnd | TAllocationEvent | |
| An event invoked when an allocation is dragged then dropped in a new location. | ||
| OnAllocationDragEndQuery | 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 | 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 | TAllocationDragStartEvent | |
| An event invoked when an allocation is first dragged. | ||
| OnAllocationDraw | TAllocationDrawEvent | |
| An event invoked before an allocation is drawn. It allows the allocation to be drawn with specific colours. | ||
| OnAllocationRightClick | TAllocationEvent | |
| An event invoked when an allocation is right-clicked. | ||
| OnAllocationSelectionChange | TAllocationEvent | |
| An event invoked when the selected property of an allocation is changed. | ||
| OnAllocationStretch | 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 | TAllocationEvent | |
| An event invoked when an allocation is stretched, but the stretch is then cancelled. | ||
| OnAllocationStretchEnd | TAllocationEvent | |
| An event invoked when an allocation is stretched, after the change has been made. | ||
| OnAllocationStretchEndQuery | 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 | TAllocationDragQueryEvent | |
| An event invoked when an allocation is first stretched. | ||
| OnAllocationSwitchResource | TAllocationSwitchResourceEvent | |
| An event invoked when an allocation is dropped onto a different resource. | ||
| OnAllocationSwitchResourceQuery | 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 | TNotifyEvent | |
| An event invoked before the bitmap has been painted to the canvas. | ||
| OnChange | TNotifyEvent | |
| An event invoked when the chart has changed. | ||
| OnDateRangeChange | TNotifyEvent | |
| An event invoked when the chart start and/or end date/time has changed. | ||
| OnDragPlot | 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 | TNotifyEvent | |
| An event invoked when the chart dragging ends. | ||
| OnDragPlotStart | TDragPlotStartEvent | |
| An event invoked when the chart dragging starts. | ||
| OnDrawDateLabel | 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 | 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 | 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 | TDrawResourceNameEvent | |
| An event invoked before the name of the resource is displayed. This event allows you to control the colour of the text. | ||
| OnGetDateTimeLabelText | TGetDateTimeLableEvent | |
| Allows bespoke date and time labels. | ||
| OnGetPlotBackground | TGetPlotBackgroundEvent | |
| This event to allows the irregular colouring of the plot background. For example, to allow weekends to be in a different colour. | ||
| OnResourceNameClick | TResourceEvent | |
| An event invoked when a resource name is clicked. | ||
| OnResourceNameDblClick | TResourceEvent | |
| An event invoked when a resource name is double-clicked. | ||
| OnResourceNameAutoHint | 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 | TResourceEvent | |
| An event invoked when a resource name is right-clicked. | ||
| OnRightClick | TNotifyEvent | |
| An event invoked when the chart is right-clicked. | ||
| OnOwnerDrawAllocation | TAllocationOwnerDrawEvent | |
| An event invoked to draw an allocation bar when the racOwnerDrawAllocations option is set. | ||
| OnOwnerDrawDateLabel | TOwnerDrawDateLabelEvent | |
| An event invoked to draw a date label when the racOwnerDrawDateLabels option is set. | ||
| OnOwnerDrawResourceName | TOwnerDrawResourceNameEvent | |
| An event invoked to draw a resource name when the racOwnerDrawResourceNames option is set. | ||
| OnPlotRectChange | TNotifyEvent | |
| An event invoked when the size or location of the plot area changes. | ||
| AddResource | (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 | () | |
| Starts buffering updates. One call to EndUpdate should be called for each call to BeginUpdate. | ||
| Clear | () | |
| Deletes all resources and allocations. | ||
| DateTimeToX | (dt: TDateTime): integer | |
| Converts a TDateTime to a chart x-coordinate. | ||
| DeselectAllAllocations | () | |
| Deselects all selected allocations. | ||
| EndUpdate | () | |
| Stops buffering updates. One call to EndUpdate should be called for each call to BeginUpdate. | ||
| ExchangeResources | (Resource1, Resource2: TResource) | |
|
or |
(ResourceIndex1, ResourceIndex2: integer) | |
| Exchanges two resources so that they swap position in the chart. | ||
| FindResource | FindResource(aResourceName: string; CaseSensitive: boolean = false): TResource | |
| Returns the resource with the specified name, or nil if there is no resource. | ||
| FindResourceFromY | (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 | (Resource: TResource): integer | |
| Returns the index of a particular resource, or -1 if the resource is not found. | ||
| InsertResource | (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 | () | |
| Invalidates the chart area causing a re-paint. | ||
| PaintTo | (Canvas: TCanvas; Rct: TRect; TopIndex: integer): integer | |
| (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 | (Increment: TDateTime) | |
| Scrolls the chart by the specified amount. Use negative increments to scroll to an earlier date/time range. | ||
| SetDateTime | (StartAt, EndAt: TDateTime) | |
| Sets the StartAt and EndAt properties in a single operation. | ||
| SortAllocations | () | |
| Sorts the allocations into increasing date/time order for all resources. | ||
| XToDateTime | (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 | 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 | [indx: integer]: TResourceAllocation | |
| An array giving access to the allocations for the resource. | ||
| Color | TColor | |
| The default colour for allocations of this resource. | ||
| Count | integer | |
| The number of allocations for this resource. | ||
| DisplayRect | TRect | |
| The rectangle used to display allocations for this resource. | ||
| Name | string | |
| The name of the resource. | ||
| OwnsAnyObject | 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 | TCustomResourceAllocationChart | |
| The chart this resource belongs to. | ||
| Style | TResourceDisplayStyle | |
| The default display style for allocations of this resource. | ||
| Tag | 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 | (StartAt, EndAt: TDateTime): TResourceAllocation | |
| Adds a new allocation slot between the times specified. | ||
| BeginUpdate | () | |
| Starts buffering updates. One call to EndUpdate should be called for each call to BeginUpdate. | ||
| Clear | () | |
| Deletes all allocations for this resource. | ||
| EndUpdate | () | |
| Stops buffering updates. One call to EndUpdate should be called for each call to BeginUpdate. | ||
| FindFreeSlot | (MinDateTime, MaxDateTime, Span: TDateTime; Increment: TDateTime = -1): TDateTime | |
| Finds the first free slot with the specified span, between the two date/times. | ||
| FindSlotAt | (DateTime: TDateTime): TResourceAllocation | |
| Returns the allocation at a particular time, or nil if none. | ||
| FindSlotFromPoint | (point: TPoint): TResourceAllocation | |
| Finds the allocation displayed at the specified position. Returns nil if none. | ||
| IndexOf | (Slot: TResourceAllocation): integer | |
| Returns the index of a particular allocation, or -1 if the allocation is not found. | ||
| IsSlotFree | (StartAt, EndAt: TDateTime; IgnoreSlot: TResourceAllocation = nil): boolean | |
| Determines whether a particular allocation slot is free. Can optionally ignore an allocation when checking. | ||
| SortAllocations | () | |
| 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 | 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 | TColor | |
| The colour of this allocation. | ||
| DisplayRect | TRect | |
| The bounding rectangle for this allocation when displayed on the chart. | ||
| EndAt | TDateTime | |
| The end date/time for the allocation. | ||
| OwnsAnyObject | 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 | TResource | |
| The resource this allocation belongs to. | ||
| Selected | TResource | |
| The resource this allocation belongs to. | ||
| StartAt | TDateTime | |
| The start date/time for the allocation. | ||
| Style | TResourceDisplayStyle | |
| The display style of this allocation. | ||
| Tag | 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 | () | |
| Starts buffering updates. One call to EndUpdate should be called for each call to BeginUpdate. | ||
| EndUpdate | () | |
| Stops buffering updates. One call to EndUpdate should be called for each call to BeginUpdate. | ||
| SetDateTime | (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 | TColor | |
| The colour of the outer part of the chart underneath the resource names and date labels.. | ||
| DateFormat | string | |
| The format used for the date labels. Leave blank to use the default regional setting short date format. | ||
| DateLabelBase | 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 | double | |
| The interval between date/time labels.
Note: DateLabelBase and DateLabelInterval are not used if the OnDrawDateLabel event is set. |
||
| DateLineBase | 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 | TColor | |
| The colour of the vertical lines drawn at date/time labels. | ||
| DateLineInterval | 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 | 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 | TFont | |
| The font of the date/time labels. | ||
| DateTimeStyle | TDateTimeStyle | |
| The style of date/time labels. Defaults to dtDateAndTime. | ||
| PlotBackColor | TColor | |
| The colour of the plot background area. | ||
| PlotBackAlternateColor | 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 | double | |
| The interval used for each band of colour. | ||
| PlotBorderColor | TColor | |
| The colour of the lines making up the rectangle surrounding the actual chart area. | ||
| ResourceBottomMarginRows | TIntegerZeroOrGrearter | |
| The number of "rows" to leave clear at the bottom of the chart. | ||
| ResourceLineColor | TColor | |
| The colour of the lines drawn behind resources. | ||
| ResourceLineStyle | 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 | TIntegerZeroOrGrearter | |
| The width of the lines drawn behind resources. The lines are not drawn if the width is set to 0. | ||
| ResourceNameAlignment | TAlignment | |
| The alignment of the resource names. | ||
| ResourceNameFont | TFont | |
| The font used to display the resource names. | ||
| ResourceNameWidth | 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 | TColor | |
| The colour of the lines drawn between adjacent resources. | ||
| ResourceSeparatorLineStyle | 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 | TIntegerZeroOrGrearter | |
| The width of the lines drawn between adjacent resources. The lines are not drawn if the width is set to 0. | ||
| ResourceTopMarginRows | TIntegerZeroOrGrearter | |
| The number of "rows" to leave clear at the top of the chart. | ||
| RowGap | TIntegerZeroOrGrearter | |
| The vertical gap between rows. | ||
| RowHeight | TIntegerZeroOrGrearter | |
| The height of the allocation bars. Set to zero to use a value based on the height of the currently selected font. | ||
| ShadowColor | TColor | |
| The colour of the allocation shadows. | ||
| ShadowDepth | TIntegerZeroOrGrearter | |
| The depth of the allocation shadows. | ||
| TimeFormat | string | |
| The format used for the time labels. Leave blank to use the default regional setting time format. | ||
| Assign | (other: TResourceAllocationChartAppearance) | |
| Starts buffering updates. One call to EndUpdate should be called for each call to BeginUpdate. | ||
| BeginUpdate | ( ) | |
| Starts buffering updates. One call to EndUpdate should be called for each call to BeginUpdate. | ||
| EndUpdate | ( ) | |
| Stops buffering updates. One call to EndUpdate should be called for each call to BeginUpdate. | ||
| SetDefaults | ( ) | |
| 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 | |
| rsBlockArrow | ||
| rsLineArrow | ||
| rsUpCalliper | ||
| rsDownCalliper | ||
| rsRoundRect | ||
| rsEllipse | ||
| rsPointedBlock | ||
| rsLine | ||
| 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. | |
Copyright © 2000-2008 Simon Armstrong. All Rights Reserved.
Last Update
2008-06-29
