void wxGenericColourDialog::OnPaint(wxPaintEvent& WXUNUSED(event)) { wxPaintDC dc(this); PaintBasicColours(dc); PaintCustomColours(dc); PaintCustomColour(dc); PaintHighlight(dc, true); }
void wxGenericColourDialog::OnPaint(wxPaintEvent& WXUNUSED(event)) { wxPaintDC dc(this); PaintBasicColours(dc); // wxStaticBitmap controls are updated on their own. #if !wxCLRDLGG_USE_PREVIEW_WITH_ALPHA PaintCustomColours(dc, -1); PaintCustomColour(dc); #endif // !wxCLRDLGG_USE_PREVIEW_WITH_ALPHA PaintHighlight(dc, true); }
void wxGenericColourDialog::OnPaint(wxPaintEvent& event) { #if !defined(__WXMOTIF__) && !defined(__WXPM__) && !defined(__WXCOCOA__) wxDialog::OnPaint(event); #endif wxPaintDC dc(this); PaintBasicColours(dc); PaintCustomColours(dc); PaintCustomColour(dc); PaintHighlight(dc, true); }
void wxGenericColourDialog::OnAddCustom(wxCommandEvent& WXUNUSED(event)) { wxClientDC dc(this); if (whichKind != 2) { PaintHighlight(dc, false); whichKind = 2; colourSelection = 0; PaintHighlight(dc, true); } customColours[colourSelection].Set(colourData.m_dataColour.Red(), colourData.m_dataColour.Green(), colourData.m_dataColour.Blue()); colourData.SetCustomColour(colourSelection, customColours[colourSelection]); PaintCustomColours(dc); }
void wxGenericColourDialog::OnAddCustom(wxCommandEvent& WXUNUSED(event)) { wxClientDC dc(this); if (m_whichKind != 2) { PaintHighlight(dc, false); m_whichKind = 2; m_colourSelection = 0; PaintHighlight(dc, true); } m_customColours[m_colourSelection] = m_colourData.GetColour(); m_colourData.SetCustomColour(m_colourSelection, m_customColours[m_colourSelection]); #if wxCLRDLGG_USE_PREVIEW_WITH_ALPHA wxBitmap bmp(m_smallRectangleSize, 32); bmp.UseAlpha(); DoPreviewBitmap(bmp, m_customColours[m_colourSelection]); m_customColoursBmp[m_colourSelection]->SetBitmap(bmp); #else PaintCustomColours(dc, m_colourSelection); #endif // wxCLRDLGG_USE_PREVIEW_WITH_ALPHA/!wxCLRDLGG_USE_PREVIEW_WITH_ALPHA }