ComCtrls.TDateTimePicker

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From ComCtrls.pas

TDateTimePicker = class(TCommonCalendar)


Unit: ComCtrls

Type: class

Inherited Class Members: ComCtrls.TDateTimePicker Members

Class Properties: ComCtrls.TDateTimePicker Properties

Class Methods: ComCtrls.TDateTimePicker Methods

Class Constructors & Destructors: ComCtrls.TDateTimePicker Constructors

Class Events: ComCtrls.TDateTimePicker Events

C++ Information

From ComCtrls.hpp

TDateTimePicker = class(TCommonCalendar)


Unit: ComCtrls

Type: class

Inherited Class Members: ComCtrls.TDateTimePicker Members

Class Properties: ComCtrls.TDateTimePicker Properties

Class Methods: ComCtrls.TDateTimePicker Methods

Class Constructors & Destructors: ComCtrls.TDateTimePicker Constructors

Class Events: ComCtrls.TDateTimePicker Events

Description

TDateTimePicker displays a list box for entering dates or times.


TDateTimePicker is a visual component designed specifically for entering dates or times. In dmComboBox date mode, it resembles a list box or combo box, except that the drop-down list is replaced with a calendar illustration; users can select a date from the calendar. Dates or times can also be selected by scrolling with Up and Down arrows and by typing.

Date-time picker ignores the BiDiMode setting for right-to-left reading, displaying dates according to the system locale.

TDateTimePicker formats date and time values according to the date and time settings in the Regional Settings of the Control panel on the user's system. Because TDateTimePicker is a wrapper for a Windows control, these formats can't be changed by changing the formatting variables in the SysUtils unit. However, you can use the Windows API call DateTime_SetFormat to programmatically specify these settings.

Note:  The underlying Windows control is known to behave unpredictably when used to set dates in 1752, the year English-speaking countries changed to the Gregorian calendar. Similar problems may appear for different dates when a non-English locale is used. If an application might be used to specify dates on or before the changeover in the current locale (for example, 1918 or before in Russian locales), be sure to test the application using the dates affected.

See Also

Code Samples


Personal tools
Translations
Newest Version