X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2eda91db2908af95455cc139c2a10861f8a89cf2..ba30efbc53a2a11794cb3ed999b5b053aeb077d4:/src/generic/datectlg.cpp?ds=inline diff --git a/src/generic/datectlg.cpp b/src/generic/datectlg.cpp index 35469e70eb..8a1c2bcf2e 100644 --- a/src/generic/datectlg.cpp +++ b/src/generic/datectlg.cpp @@ -194,12 +194,33 @@ void wxDropdownButton::DoMoveWindow(int x, int y, int w, int h) wxRect r(0,0,bw, bh); wxRendererNative& renderer = wxRendererNative::Get(); + +#ifdef __WXGTK__ + wxColour magic(255,0,255); + dc.SetBrush( wxBrush( magic ) ); + dc.SetPen( *wxTRANSPARENT_PEN ); + dc.DrawRectangle(0,0,bw,bh); + renderer.DrawComboBoxDropButton(this, dc, r); + wxMask *mask = new wxMask( bmp, magic ); + bmp.SetMask( mask ); +#else renderer.DrawComboBoxDropButton(this, dc, r); +#endif SetBitmapLabel(bmp); wxBitmap bmpSel(bw, bh); dc.SelectObject(bmpSel); + +#ifdef __WXGTK__ + dc.SetBrush( wxBrush( magic ) ); + dc.SetPen( *wxTRANSPARENT_PEN ); + dc.DrawRectangle(0,0,bw,bh); + renderer.DrawComboBoxDropButton(this, dc, r, wxCONTROL_PRESSED); + mask = new wxMask( bmpSel, magic ); + bmpSel.SetMask( mask ); +#else renderer.DrawComboBoxDropButton(this, dc, r, wxCONTROL_PRESSED); +#endif SetBitmapSelected(bmpSel); } @@ -471,8 +492,6 @@ bool wxDatePickerCtrlGeneric::Enable(bool enable) if ( !enable ) { - if ( m_cal ) - m_cal->Hide(); if ( m_popup ) m_popup->Hide(); }