CStatic That Knows Good From Bad

This class is a UI widget, derived from CStatic that knows if the value it is displaying is within tolerance or not. And when the value changes from within tolerance to out of tolerance it can (If you set the colors) change the background colors, say Green for intolerance, Red for out. You can set the Font and the colors to what ever you want.

This controll is great when you are displaying a value and you want to notify the user if the value is within tolerance or out of tolerance.

As always this controll can be either an LValue or an RValue

Downloads

Download demo project - 45 Kb


Comments

  • does not compile

    Posted by Legacy on 05/11/2000 12:00am

    Originally posted by: Rick Shide

    BOOL CMathEdit::PreTranslateMessage(MSG* pMsg)
    {
    if (pMsg->message==WM_KEYDOWN && pMsg->wParam==VK_RETURN)
    {
    //AfxMessageBox("eating return!");
    EvaluateData();

    if()
    return TRUE;
    }

    return CEdit::PreTranslateMessage(pMsg);
    }

    MathEdit.cpp(81) : error C2059: syntax error : ')'

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • 10 Rules that Make or Break Enterprise App Development Projects In today's app-driven world, application development is a top priority. Even so, 68% of enterprise application delivery projects fail. Designing and building applications that pay for themselves and adapt to future needs is incredibly difficult. Executing one successful project is lucky, but making it a repeatable process and strategic advantage? That's where the money is. With help from our most experienced project leads and software engineers, …

  • IT decision support impacts all aspects of technology management, from governance and strategy to budgets and resource planning. IT decision support effectiveness often falls prey to data-driven challenges that make it difficult to understand the data in context. These challenges: overwhelming data volumes, heterogeneous data types, and growing data complexity. This Forrester Consulting Paper reports the three key findings from their study conducted, on behalf of BDNA, to test the hypothesis that data …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds