git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13895
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
if (Value != m_Value)
{
{
if (Value != m_Value)
{
if (!Value.IsEmpty())
{
for(size_t i=0; i<Value.Length(); i++) {
if (!Value.IsEmpty())
{
for(size_t i=0; i<Value.Length(); i++) {
wxT("wxLEDNumberCtrl can only display numeric string values."));
}
}
wxT("wxLEDNumberCtrl can only display numeric string values."));
}
}
m_Value = Value;
RecalcInternals(GetClientSize());
m_Value = Value;
RecalcInternals(GetClientSize());
DrawDigit(MemDc, DIGITALL, i);
// Draw the digits.
DrawDigit(MemDc, DIGITALL, i);
// Draw the digits.
+ switch (m_Value.GetChar(i))
{
case '0' :
DrawDigit(MemDc, DIGIT0, i);
{
case '0' :
DrawDigit(MemDc, DIGIT0, i);
if ((Height * 0.07) < 1)
m_LineMargin = 1;
else
if ((Height * 0.07) < 1)
m_LineMargin = 1;
else
- m_LineMargin = Height * 0.07;
+ m_LineMargin = (int)(Height * 0.07);
if ((Height * 0.35) < 1)
m_LineLength = 1;
else
if ((Height * 0.35) < 1)
m_LineLength = 1;
else
- m_LineLength = Height * 0.35;
+ m_LineLength = (int)(Height * 0.35);
m_LineWidth = m_LineMargin;
m_LineWidth = m_LineMargin;