TimePickerCtrl version 0.2

Screenshots

image_win.png

TimePickerCtrl on Windows

image_linux.png

TimePickerCtrl on Linux


Usage sample

         #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
            ...
         }
         ...

Documentation

The documentation for this component is available online here.


Known bugs

None. To submit a bug report please look at wxCode support page.


Future enhancements

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.