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

  • In this on-demand webcast, Oracle ACE and Toad Product Architect Bert Scalzo discusses 10 powerful and hidden features in Toad® that help increase your productivity and DB performance. Watch this webcast today.

  • Savvy enterprises are discovering that the cloud holds the power to transform IT processes and support business objectives. IT departments can use the cloud to redefine the continuum of development and operations—a process that is becoming known as DevOps. Download the Executive Brief DevOps: Why IT Operations Managers Should Care About the Cloud—prepared by Frost & Sullivan and sponsored by IBM—to learn how IBM SmartCloud Application services provide a robust platform that streamlines …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds