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

  • With 81% of employees using their phones at work, companies have stopped asking: "Is corporate data leaking from personal devices?" and started asking: "How do we effectively prevent corporate data from leaking from personal devices?" The answer has not been simple. ZixOne raises the bar on BYOD security by not allowing email data to reside on the device. In addition, Zix allows employees to maintain complete control of their personal device, therefore satisfying privacy demands of valued employees and the …

  • Agile development principles have gone from something used only by cutting-edge teams to a mainstream approach used by teams large and small. If you're not using agile methods already though, or if you've only been exposed to agile on small projects here and there, you may wonder if agile can ever work in your environment. Read this eBook to learn the fundamentals of agile and how to increase the productivity of your software teams while enabling them to produce higher-quality solutions that better fulfill …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds