Back to Devexpress

ResourceColorIntensityValues Constant

vcl-cxschedulerutils-267909c0.md

latest2.8 KB
Original Source

ResourceColorIntensityValues Constant

Specifies the intensity of colors used to paint time blocks in the scheduling area.

Declaration

delphi
const ResourceColorIntensityValues: array[TcxSchedulerViewStyle] of array[TSchedulerResourceColor] of Integer = ((80, 65, 85, 70, 90, 100), (80, 80, 80, 80, 90, 100));

Returns

Type
array[TcxSchedulerViewStyle] of array[TSchedulerResourceColor] of Integer

Remarks

Each resource is painted with the color specified via the TcxSchedulerStorageResourceItem.Color property from a set of built-in resource colors, enumerated by the PredefinedResourceColors.

Within a resource, different content areas can be painted with a different color intensity (specified via the ResourceColorIntensityValues constant) to facilitate end-users identifying them.

Intensity values are relative, and must be specified in a range from 0 (black) through to 100 (an element is painted with the specified resource color).

Values include:

ValueMeaning
srcMinorNonWorkTimeSeparatorTime ruler’s minor tick marks displayed in the scheduling area’s non-work time section.
srcMajorNonWorkTimeSeparatorTime ruler’s major tick marks displayed in the scheduling area’s non-work time section.
srcMinorWorkTimeSeparatorTime ruler’s minor tick marks displayed in the scheduling area’s work time section.
srcMajorWorkTimeSeparatorTime ruler’s major tick marks displayed in the scheduling area’s work time section.
srcNonWorkTimeTime blocks displayed in the scheduling area’s non-work time section.
srcWorkTimeTime blocks displayed in the scheduling area’s work time section.

Use the ResourceColorIntensityValues constant to customize the colors of time block elements.

See Also

TcxSchedulerDayView.WorkTimeOnly

TcxSchedulerDBStorageResources.ResourceColor

TcxSchedulerOptionsView.WorkDays

TcxSchedulerOptionsView.WorkFinish

TcxSchedulerOptionsView.WorkStart

TcxSchedulerTimeGridView.WorkTimeOnly

cxSchedulerUtils Unit