TimePickerCtrl on Windows |
TimePickerCtrl on Linux |
#include "timepickerctrl.h"
...
class MyWindow : public wxFrame{
public:
MyWindow(...);
...
void OnTimePicker(wxCommandEvent& event); // Handler for TimePickerCtrl changed events
...
TimePickerCtrl m_timepicker;
...
};
...
BEGIN_EVENT_TABLE(MyWindow,wxFrame)
...
EVT_TIMEPICKER(TimePickerCtrlFrame::OnTimePicker)
...
END_EVENT_TABLE()
...
MyWindow::MyWindow(...){
...
m_timepicker = new TimePickerCtrl(this,ID_CUSTOM1,wxEmptyString,wxDefaultPosition,wxSize(118,45),0);
...
}
...
void Mywindow::OnTimePicker(wxCommandEvent& event){
// Add code here to handle events triggered by the TimePickerCtrl
...
}
...
The documentation for this component is available online here.
None. To submit a bug report please look at wxCode support page.
Currently the time format is fixed. Depending on public interest and my available time, I may implement customization. To submit a feature request please look at wxCode support page.