projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Setting state to STATE_NEW in wxThread::Create
[wxWidgets.git]
/
src
/
univ
/
renderer.cpp
diff --git
a/src/univ/renderer.cpp
b/src/univ/renderer.cpp
index eebe8b30626e160de416d6a6429cb8a8fc0bcf8a..8a0ae893f4716d59a87c781948ad52c51ad7686d 100644
(file)
--- a/
src/univ/renderer.cpp
+++ b/
src/univ/renderer.cpp
@@
-5,8
+5,8
@@
// Modified by:
// Created: 15.08.00
// RCS-ID: $Id$
// Modified by:
// Created: 15.08.00
// RCS-ID: $Id$
-// Copyright: (c) 2000
Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
-// Licence: wxWindows licen
s
e
+// Copyright: (c) 2000
SciTech Software, Inc. (www.scitechsoft.com)
+// Licence: wxWindows licen
c
e
///////////////////////////////////////////////////////////////////////////////
// ===========================================================================
///////////////////////////////////////////////////////////////////////////////
// ===========================================================================
@@
-38,11
+38,16
@@
#endif // WX_PRECOMP
#include "wx/image.h"
#endif // WX_PRECOMP
#include "wx/image.h"
+#include "wx/log.h"
#include "wx/univ/theme.h"
#include "wx/univ/renderer.h"
#include "wx/univ/colschem.h"
#include "wx/univ/theme.h"
#include "wx/univ/renderer.h"
#include "wx/univ/colschem.h"
+#if wxUSE_GAUGE
+#include "wx/gauge.h"
+#endif
+
// ============================================================================
// implementation
// ============================================================================
// ============================================================================
// implementation
// ============================================================================
@@
-413,6
+418,7
@@
wxControlRenderer::wxControlRenderer(wxWindow *window,
void wxControlRenderer::DrawLabel(const wxBitmap& bitmap,
wxCoord marginX, wxCoord marginY)
{
void wxControlRenderer::DrawLabel(const wxBitmap& bitmap,
wxCoord marginX, wxCoord marginY)
{
+ m_dc.SetBackgroundMode(wxTRANSPARENT);
m_dc.SetFont(m_window->GetFont());
m_dc.SetTextForeground(m_window->GetForegroundColour());
m_dc.SetFont(m_window->GetFont());
m_dc.SetTextForeground(m_window->GetForegroundColour());
@@
-459,7
+465,8
@@
void wxControlRenderer::DrawButtonBorder()
m_renderer->DrawButtonBorder(m_dc, m_rect, flags, &m_rect);
m_renderer->DrawButtonBorder(m_dc, m_rect, flags, &m_rect);
- m_renderer->DrawBackground(m_dc, wxTHEME_BG_COLOUR(m_window), m_rect, flags);
+ // Why do this here?
+ // m_renderer->DrawButtonSurface(m_dc, wxTHEME_BG_COLOUR(m_window), m_rect, flags );
}
void wxControlRenderer::DrawBitmap(const wxBitmap& bitmap)
}
void wxControlRenderer::DrawBitmap(const wxBitmap& bitmap)
@@
-502,7
+509,7
@@
void wxControlRenderer::DrawBitmap(wxDC &dc,
else if ( stretch & wxEXPAND )
{
// stretch bitmap to fill the entire control
else if ( stretch & wxEXPAND )
{
// stretch bitmap to fill the entire control
- bmp = wx
Image(bmp).Scale(rect.width, rect.height).ConvertToBitmap(
);
+ bmp = wx
Bitmap(wxImage(bmp.ConvertToImage()).Scale(rect.width, rect.height)
);
}
else // not stretched, not tiled
{
}
else // not stretched, not tiled
{
@@
-767,7
+774,9
@@
void wxControlRenderer::DrawProgressBar(const wxGauge *gauge)
wxRect rect = m_rect;
rect.Deflate(1); // FIXME this depends on the border width
wxRect rect = m_rect;
rect.Deflate(1); // FIXME this depends on the border width
- m_dc.SetBrush(wxBrush(m_window->GetForegroundColour(), wxSOLID));
+ wxColour col = m_window->UseFgCol() ? m_window->GetForegroundColour()
+ : wxTHEME_COLOUR(GAUGE);
+ m_dc.SetBrush(wxBrush(col, wxSOLID));
if ( gauge->IsSmooth() )
{
if ( gauge->IsSmooth() )
{