Unicode markup.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2005-03-04 19:29:28 +00:00
parent 29b53ef977
commit 289cd4e2dc

View File

@@ -189,54 +189,54 @@ void wxLEDNumberCtrl::OnPaint(wxPaintEvent &WXUNUSED(event))
const int DigitCount = m_Value.Len(); const int DigitCount = m_Value.Len();
for (int offset=0, i = 0; offset < DigitCount; ++offset, ++i) for (int offset=0, i = 0; offset < DigitCount; ++offset, ++i)
{ {
char c = m_Value.GetChar(offset); wxChar c = m_Value.GetChar(offset);
// Draw faded lines if wanted. // Draw faded lines if wanted.
if (m_DrawFaded && (c != '.')) if (m_DrawFaded && (c != _T('.')))
DrawDigit(MemDc, DIGITALL, i); DrawDigit(MemDc, DIGITALL, i);
// Draw the digits. // Draw the digits.
switch (c) switch (c)
{ {
case '0' : case _T('0') :
DrawDigit(MemDc, DIGIT0, i); DrawDigit(MemDc, DIGIT0, i);
break; break;
case '1' : case _T('1') :
DrawDigit(MemDc, DIGIT1, i); DrawDigit(MemDc, DIGIT1, i);
break; break;
case '2' : case _T('2') :
DrawDigit(MemDc, DIGIT2, i); DrawDigit(MemDc, DIGIT2, i);
break; break;
case '3' : case _T('3') :
DrawDigit(MemDc, DIGIT3, i); DrawDigit(MemDc, DIGIT3, i);
break; break;
case '4' : case _T('4') :
DrawDigit(MemDc, DIGIT4, i); DrawDigit(MemDc, DIGIT4, i);
break; break;
case '5' : case _T('5') :
DrawDigit(MemDc, DIGIT5, i); DrawDigit(MemDc, DIGIT5, i);
break; break;
case '6' : case _T('6') :
DrawDigit(MemDc, DIGIT6, i); DrawDigit(MemDc, DIGIT6, i);
break; break;
case '7' : case _T('7') :
DrawDigit(MemDc, DIGIT7, i); DrawDigit(MemDc, DIGIT7, i);
break; break;
case '8' : case _T('8') :
DrawDigit(MemDc, DIGIT8, i); DrawDigit(MemDc, DIGIT8, i);
break; break;
case '9' : case _T('9') :
DrawDigit(MemDc, DIGIT9, i); DrawDigit(MemDc, DIGIT9, i);
break; break;
case '-' : case _T('-') :
DrawDigit(MemDc, DASH, i); DrawDigit(MemDc, DASH, i);
break; break;
case '.' : case _T('.') :
// Display the decimal in the previous segment // Display the decimal in the previous segment
i--; i--;
DrawDigit(MemDc, DECIMALSIGN, i); DrawDigit(MemDc, DECIMALSIGN, i);
break; break;
case ' ' : case _T(' ') :
// just skip it // just skip it
break; break;
default : default :