Skip to main content

TdxRangeControlDateTimeClientProperties.Scale Property

Specifies the scale displayed by the range control‘s ruler provided by the date/time client.

Declaration

property Scale: TdxRangeControlDateTimeScale read; write;

Property Value

Type
TdxRangeControlDateTimeScale

Remarks

This property specifies the measurement unit corresponding to the minimum date/time range that can be selected by using a range control integrated with the date/time client. To change the scale displayed on the range control’s ruler, you can assign one of the scales supported by the client to the Scale property:

Value Scale’s Measurement Unit Synchronized with the Property Value
Scales.Day rcduDay Scales.Day.Active
Scales.Hour rcduHour Scales.Hour.Active
Scales.Minute rcduMinute Scales.Minute.Active
Scales.Month rcduMonth Scales.Month.Active
Scales.Quarter rcduQuarter Scales.Quarter.Active
Scales.Week rcduWeek Scales.Week.Active
Scales.Year rcduYear Scales.Year.Active

The following code example sets the minimum selectable date/time range to one month:

var
  ADateTimeProperties: TdxRangeControlDateTimeClientProperties;
//...
  ADateTimeHeaderProperties := dxRangeControl1.ClientProperties as TdxRangeControlDateTimeClientProperties;
  ADateTimeProperties.Scale := ADateTimeProperties.Scales.Hour;

Alternatively, you can set the corresponding synchronized property to True.

Note

To identify the minimum range that can be selected by using the range control integrated with the date/time client, use the Scale.ScaleUnit property.

See Also