31 const wxBitmapBundle& aCheckedBitmap,
32 const wxBitmapBundle& aUncheckedBitmap,
bool aChecked ) :
33 wxPanel( aParent, aId ),
39 wxBoxSizer* sizer =
new wxBoxSizer( wxHORIZONTAL );
44 m_bitmap =
new wxStaticBitmap(
this, aId, bundle, wxDefaultPosition );
49 [&]( wxMouseEvent& event )
51 wxLongLong now = wxGetLocalTimeMillis();
60 wxCommandEvent command( TOGGLE_CHANGED );
62 command.SetEventObject(
this );
63 wxPostEvent(
this, command );
67 [&]( wxEvent& aEvent )
69 wxPostEvent(
this, aEvent );
72 m_bitmap->Bind( wxEVT_RIGHT_DOWN, passOnEvent );
73 m_bitmap->Bind( wxEVT_RIGHT_UP, passOnEvent );