Jump to content
  • Advertisement
Sign in to follow this  
evileconomist

Color toggle, in a banking application

This topic is 5406 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi Imagine a window with lots of numbers in it (Foreign Exchange quotes; it's a Bank/Trading application). When a "price" is updated the background color should change to red (and stay red for 0.5-1 second) and then switch back to the default background color (usually white). Now, how do I accomplish this using C++/Win32/MFC? The problem is easy to solve with a timer, so how do I solve it without a timer? Can the screen refresh rate be used in some way? (Also, the update color could be a graphical effect!)

Share this post


Link to post
Share on other sites
Advertisement
Unless you repaint all the time you won't find another way than to use timers.

You might use one timer for ALL flashes, so you don't have to create one for every flash.

You don't have any access to the screen refresh rate or the vertical beam pos from within the Windows GUI.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!