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

  • On-demand Event Event Date: September 10, 2014 Modern mobile applications connect systems-of-engagement (mobile apps) with systems-of-record (traditional IT) to deliver new and innovative business value. But the lifecycle for development of mobile apps is also new and different. Emerging trends in mobile development call for faster delivery of incremental features, coupled with feedback from the users of the app "in the wild." This loop of continuous delivery and continuous feedback is how the best mobile …

  • On-demand Event Event Date: July 22, 2014 In this WhatWorks analysis, John Pescatore examines a use case where end users had local administrative rights on their PCs and it had gotten out of hand for this Fortune 500 Energy and Utilities company. The compelling event that prompted the company to reexamine this situation was the migration to Windows 7. In Windows XP, a custom tool that allowed users one of three levels of administrative rights to their workstations would need to be replaced during the Windows …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds