DateControl Xojo Plugin

DateControl Control

DateControl is to create a platform native date selection control.

Note:
The control uses native date selectors for each OS, and therefore the limitations and look and feel will depend on the Target operating system.

RectControl
   DateControl

control DateControl

Properties

CheckedWhen the control is set to be able to represent empty dates then setting this property to true will mean that the date is not empty. In same way then setting it to false will mean the date is empty.
DateFormatDefines the display format of the date.
DateValueUse this property to set or get the date of the control.
DayUse this property to set or get the Day value of the control.
DebugDataSizeUsed for internal quality control of the plugin.
DropDownIconSets the DropDownIcon for the drop down calendar mode on macOS and Linux systems. (On Windows this does nothing since the Windows control is native control that does not use icon). This property supports retina enabled Image sets.
DropDownIconRetinaSets 32 x 32 pixel retina drop down image for MacOS targets when your using old Xojo's or other such were you cannot use the new Image Set mechanism.
EmptyDatesSet this property to true if the control should be able to represent empty dates.
LinuxDropDownModeIf set to true then drop down mode is enabled on Linux systems.
LinuxFontBoldUse this property to determine if the font on Linux targets should be bold faced.
LinuxTextFontUse this property to determine the font on Linux Targets.
LinuxTextSizeUse this property to determine the font size on Linux Targets.
LinuxTextUnitSets the unit of the FontSize.
MacFontBoldUse this property to determine if the font on MacOS targets should be bold faced.
MacTextFontUse this property to determine the font on MacOS Targets.
MacTextSizeUse this property to determine the font size on MacOS Targets.
MaxDateValueSets or gets the maximum date allowed to be entered in the DateControl.
MinDateValueSets or gets the minimum date allowed to be entered in the DateControl.
MonthUse this property to set or get the Month value of the control.
OSXDropDownModeIf set to true then drop down mode is enabled on OS X systems.
WinFontBoldUse this property to determine if the font on Windows targets should be bold faced.
WinTextFontUse this property to determine the font on Windows Targets.
WinTextSizeUse this property to determine the font size on Windows Targets.
WinTextUnitSets the unit of the FontSize.
YearUse this property to set or get the Year value of the control.

Methods

SetFocusUse this method to manually give the control focus.

Events

CustomizeLocalizationUse this event to put custom localization for the OS X drop down calendar. If this event is not used then the calendar is automatically localized using system locale.
GotFocusThis event is fired when a the control gets the input focus.
KeyDownThe user has pressed the Key passed while the DateControl has the focus.
LostFocusThis event is fired when a the control looses the input focus.
MacMouseDownThis event is fired when a when the Mouse goes down on the control. This event is only fired on MacOS Targets.
ValueChangedThis event is fired when a portion or all of the date changes in the control.

Supported Platforms:

  • MacOS X Carbon
  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM