Struct native_windows_gui::DatePicker [] [src]

pub struct DatePicker { /* fields omitted */ }

A simple date picker control. Do not handle timezone. It is recomended to use a specialized date time library to use with this control.

Methods

impl DatePicker
[src]

Set the format of the date time picker. Use the format specified in the DTP template.

Return the check state of the checkbox of the control (if optional was set to true).
If the date time picker is not optional, return false.

Return the time set in the control in a PickerDate structure.
Return None if optional was set and the checkbox is not checked.
Note: use get_date_string to get the text value of the control.

Set the time set in the control in a PickerDate structure.
If None is passed, clears the checkbox.

Get the alignment of the calendar popup. For some reason, it is impossible to retrive the TextEdit handle, therefore getting its alignment is impossible.

Change the alignment of the calendar popup. For some reason, it is impossible to retrive the TextEdit handle, therefore setting its alignment is impossible.

Close the calendar popup if it is open

Trait Implementations

impl Control for DatePicker
[src]

Should return the underlying handle to the object

Should return the type of the control. For custom controls, the return value should be Undefined (the default).

If specified, should free any ressource allocated in the template build function. This includes functions like DestroyWindow.