git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39615
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
dc.SetBackground(* wxRED_BRUSH);
dc.SetBackgroundMode(wxSOLID);
wxBrush* brush = wxTheBrushList->FindOrCreateBrush(
dc.SetBackground(* wxRED_BRUSH);
dc.SetBackgroundMode(wxSOLID);
wxBrush* brush = wxTheBrushList->FindOrCreateBrush(
- _T("BLACK"), wxCROSSDIAG_HATCH
+ *wxBLACK, wxCROSSDIAG_HATCH
- m_textColour = new wxColour(_T("BLACK"));
+ m_textColour = new wxColour(*wxBLACK);
wxInitAllImageHandlers();
#endif
wxInitAllImageHandlers();
#endif
- m_canvasTextColour = wxColour(_T("BLACK"));
+ m_canvasTextColour = *wxBLACK;
m_canvasFont = *wxNORMAL_FONT;
// Create the main frame window
m_canvasFont = *wxNORMAL_FONT;
// Create the main frame window
dc.SetTextBackground( _T("RED") );
dc.DrawBitmap( my_smile_xbm, 30, 2010 );
dc.SetTextBackground( _T("RED") );
dc.DrawBitmap( my_smile_xbm, 30, 2010 );
- dc.SetTextForeground( wxT("BLACK") );
+ dc.SetTextForeground( *wxBLACK );
dc.DrawText( _T("After wxImage conversion"), 150, 1975 );
dc.DrawText( _T("(red on white)"), 150, 1990 );
dc.SetTextForeground( wxT("RED") );
dc.DrawText( _T("After wxImage conversion"), 150, 1975 );
dc.DrawText( _T("(red on white)"), 150, 1990 );
dc.SetTextForeground( wxT("RED") );
wxRED_PEN->GetColour().Green(),
wxRED_PEN->GetColour().Blue() );
dc.DrawBitmap( wxBitmap(i), 150, 2010, true );
wxRED_PEN->GetColour().Green(),
wxRED_PEN->GetColour().Blue() );
dc.DrawBitmap( wxBitmap(i), 150, 2010, true );
- dc.SetTextForeground( wxT("BLACK") );
+ dc.SetTextForeground( *wxBLACK );
dc.SetTextBackground( wxT("GREEN") );
dc.DrawBitmap( mono, 30, 2130 );
dc.SetTextBackground( wxT("GREEN") );
dc.DrawBitmap( mono, 30, 2130 );
- dc.SetTextForeground( wxT("BLACK") );
+ dc.SetTextForeground( *wxBLACK );
dc.DrawText( _T("After wxImage conversion"), 150, 2095 );
dc.DrawText( _T("(red on white)"), 150, 2110 );
dc.SetTextForeground( wxT("RED") );
dc.DrawText( _T("After wxImage conversion"), 150, 2095 );
dc.DrawText( _T("(red on white)"), 150, 2110 );
dc.SetTextForeground( wxT("RED") );
wxRED_PEN->GetColour().Green(),
wxRED_PEN->GetColour().Blue() );
dc.DrawBitmap( wxBitmap(i), 150, 2130, true );
wxRED_PEN->GetColour().Green(),
wxRED_PEN->GetColour().Blue() );
dc.DrawBitmap( wxBitmap(i), 150, 2130, true );
- dc.SetTextForeground( wxT("BLACK") );
+ dc.SetTextForeground( *wxBLACK );
}
// For testing transparency
}
// For testing transparency
m_hPS = NULL;
m_bIsPaintTime = false; // True at Paint Time
m_hPS = NULL;
m_bIsPaintTime = false; // True at Paint Time
- wxColour vColor( wxT("BLACK") );
- m_pen.SetColour(vColor);
-
- vColor.Set( wxT("WHITE") );
- m_brush.SetColour(vColor);
+ m_pen.SetColour(*wxBLACK);
+ m_brush.SetColour(*wxWHITE);
CalcBoundingBox((vX + vWidth), (vY + vHeight));
} // end of wxDC::DoDrawText
CalcBoundingBox((vX + vWidth), (vY + vHeight));
} // end of wxDC::DoDrawText
-void wxDC::DrawAnyText(
- const wxString& rsText
-, wxCoord vX
-, wxCoord vY
-)
+void wxDC::DrawAnyText( const wxString& rsText,
+ wxCoord vX,
+ wxCoord vY )
{
int nOldBackground = 0;
POINTL vPtlStart;
{
int nOldBackground = 0;
POINTL vPtlStart;
- PCH pzStr = (PCH)rsText.c_str();
+ PCH pzStr = (PCH)rsText.c_str();
::GpiMove(m_hPS, &vPtlStart);
lHits = ::GpiCharString( m_hPS
::GpiMove(m_hPS, &vPtlStart);
lHits = ::GpiCharString( m_hPS
//
SetBackground(wxBrush(m_pCanvas->GetBackgroundColour(), wxSOLID));
//
SetBackground(wxBrush(m_pCanvas->GetBackgroundColour(), wxSOLID));
- wxColour vColor( wxT("BLACK") );
- m_pen.SetColour(vColor);
-
- vColor.Set( wxT("WHITE") );
- m_brush.SetColour(vColor);
+ m_pen.SetColour(*wxBLACK);
+ m_brush.SetColour(*wxWHITE);
- wxFont* pFont = new wxFont( 10
- ,wxMODERN
- ,wxNORMAL
- ,wxBOLD
- );
+ wxFont* pFont = new wxFont( 10, wxMODERN, wxNORMAL, wxBOLD );
SetFont(*pFont);
delete pFont;
//
SetFont(*pFont);
delete pFont;
//
const wxValidator& rVal,
const wxString& rsName )
{
const wxValidator& rVal,
const wxString& rsName )
{
+ wxColour vColour(*wxBLACK);
LONG lColor;
HWND hWndParent = GetHwndOf(pParent);
LONG lColor;
HWND hWndParent = GetHwndOf(pParent);
- vColour.Set(wxString(wxT("BLACK")));
m_backgroundColour = pParent->GetBackgroundColour();
m_nSelectedButton = -1;
m_nNoItems = 0;
m_backgroundColour = pParent->GetBackgroundColour();
m_nSelectedButton = -1;
m_nNoItems = 0;
)
) + 4; // for bordersizes
)
) + 4; // for bordersizes
+ wxColour vColour(*wxBLACK);
- vColour.Set(wxString(wxT("BLACK")));
-
- LONG lColor = (LONG)vColour.GetPixel();
+ LONG lColor = (LONG)vColour.GetPixel();
::WinSetPresParam( m_hStaticMin
,PP_FOREGROUNDCOLOR
::WinSetPresParam( m_hStaticMin
,PP_FOREGROUNDCOLOR
//
SetBackgroundColour(GetParent()->GetBackgroundColour());
//
SetBackgroundColour(GetParent()->GetBackgroundColour());
- wxColour vColour;
- vColour.Set(wxString(wxT("BLACK")));
- LONG lColor = (LONG)vColour.GetPixel();
+ LONG lColor = (LONG)wxBLACK->GetPixel();
::WinSetPresParam( m_hWnd
,PP_FOREGROUNDCOLOR
,sizeof(LONG)
::WinSetPresParam( m_hWnd
,PP_FOREGROUNDCOLOR
,sizeof(LONG)