Struct winsafe::gui::events::DateTimePickerEvents [−][src]
pub struct DateTimePickerEvents { /* fields omitted */ }
Expand description
Exposes date and time picker control notifications.
These event methods are just proxies to the
WindowEvents
of the parent window,
who is the real responsible for the child event handling.
You cannot directly instantiate this object, it is created internally by the control.
Implementations
DTN_CLOSEUP
notification.
Sent by a date and time picker control when the user closes the drop-down month calendar. The month calendar is closed when the user chooses a date from the month calendar or clicks the drop-down arrow while the calendar is open.
pub fn dtn_date_time_change<F>(&self, func: F) where
F: Fn(&NMDATETIMECHANGE) -> BoxResult<()> + 'static,
pub fn dtn_date_time_change<F>(&self, func: F) where
F: Fn(&NMDATETIMECHANGE) -> BoxResult<()> + 'static,
DTN_DATETIMECHANGE
notification.
Sent by a date and time picker control whenever a change occurs.
DTN_DROPDOWN
notification.
Sent by a date and time picker control when the user activates the drop-down month calendar.
pub fn dtn_format<F>(&self, func: F) where
F: Fn(&mut NMDATETIMEFORMAT<'_>) -> BoxResult<()> + 'static,
pub fn dtn_format<F>(&self, func: F) where
F: Fn(&mut NMDATETIMEFORMAT<'_>) -> BoxResult<()> + 'static,
DTN_FORMAT
notification.
Sent by a date and time picker control to request text to be displayed in a callback field.
pub fn dtn_format_query<F>(&self, func: F) where
F: Fn(&mut NMDATETIMEFORMATQUERY<'_>) -> BoxResult<()> + 'static,
pub fn dtn_format_query<F>(&self, func: F) where
F: Fn(&mut NMDATETIMEFORMATQUERY<'_>) -> BoxResult<()> + 'static,
DTN_FORMATQUERY
notification.
Sent by a date and time picker control to retrieve the maximum allowable size of the string that will be displayed in a callback field.
pub fn dtn_user_string<F>(&self, func: F) where
F: Fn(&mut NMDATETIMESTRING<'_>) -> BoxResult<()> + 'static,
pub fn dtn_user_string<F>(&self, func: F) where
F: Fn(&mut NMDATETIMESTRING<'_>) -> BoxResult<()> + 'static,
DTN_USERSTRING
notification.
Sent by a date and time picker (DTP) control when a user finishes
editing a string in the control. This notification code is only sent
by DTP controls that are set to the
DTS_APPCANPARSE
style.
pub fn dtn_wm_key_down<F>(&self, func: F) where
F: Fn(&NMDATETIMEWMKEYDOWN<'_>) -> BoxResult<()> + 'static,
pub fn dtn_wm_key_down<F>(&self, func: F) where
F: Fn(&NMDATETIMEWMKEYDOWN<'_>) -> BoxResult<()> + 'static,
DTN_WMKEYDOWN
notification.
Sent by a date and time picker control when the user types in a callback field.
NM_KILLFOCUS
notification.
Notifies that the control has lost the input focus.
NM_SETFOCUS
notification.
Notifies that the control has received the input focus.