CalendarTextColor

Applies to

DatePicker and EditMask controls

Description

The CalendarTextColor property specifies the color to be used for text in the calendar in a DatePicker control or an EditMask control with the DropDownCalendar property set to true.

Usage

This property does not work on the Windows 10/11 operating system.

In a painter

To set the text color for the calendar in a DatePicker or EditMask control:

  • Select a color from the TextColor drop-down list on the Calendar page in the control's Properties view.

In scripts

The CalendarTextColor property is a long indicating the color to be used for the text for an object. If you do not know the long value for the color, choose Design>Custom Colors to determine the red, green, and blue values and then call the RGB function to specify the color in a script.

The following line sets the text color for the calendar in a DatePicker control to blue:

dp_1.CalendarTextColor = RGB(0,0,255)