DateTimeControl is the CustomGui element that represents a DateTimeData. DateTimeData handles date and time, see page_manual_customdata_datetimedata::
In a GeDialog it is represented by two fields, one for the date, the other for the time. Both fields can be displayed or only one.
A "now" button can also be added to defines the stored DateTimeData to the actual date/time.
The gadget can be maximized and show a calendar and a clock.
DateTimeControl can be added and used in a GeDialog, more information in GeDialog Manual.
This example shows how to add a DateTimeControl in GeDialog::CreateLayout() using GeDialog::AddCustomGui().
Accessing the value of a DateTimeControl CustomGui gadget is done by using a pointer to this gadget, or by using GeDialog::FindCustomGui() if it has been added with GeDialog::AddCustomGui().
DateTime can be retrieved by using the function DateTimeControl::GetDateTime().
Setting the value of the gadget is done through a pointer to the gadget and the function DateTimeControl::SetDateTime().
DateTimeControl can also be used as a description of a parameter. For a description, a parameter has to be added and the custom GUI defined. See DateTimeData Manual for more details.
For a description and a dialog resource file, the symbol to add is: DATETIME
For common flags see page_description_resource::section_descriptionresource_elementflags.
For DateTimeControl flags, see DATETIME.
See Description Resource for more information about description resource.
See Dialog Resource for more information about dialog resource.
Settings can be defined for extra functionality. Some only make sense in a description.
See page_customgui_resource for a description of the common settings.
See Description Settings Manual for more information about settings.
DateTimeControl can handle DateTimeData. For more information, see DateTimeData Manual.