Year and Month Selector Control (2)

ymselect2.gif (5608 bytes)

One of the things I love about CodeGuru is that you can modify the examples to look just how you want them to, not how someone else wants them to. Recently I needed a control that would enable the user to to select just the month, and year, NOT the day. Shekar Naranan's Year and Month Selector Control was just what I had been looking for. It was a very useful piece of code, however it just seemed rather "flat" to me, so I decided to change the look of it and along the way I added other features to it.

  • The popup window now has a 3D border, the cell border have been removed, and the popup window has been shrunk. Also other minor costmetic alterations have been made.
  • Cursor Keys. When the popup window is displayed the cursur / arrow keys may be used to move the selection.
  • Space / Return Keys. Pressing the space bar or the return key within the popup window now chooses the current selection.
  • "Cool Look" Flat Buttons. The "<<" and ">>" keys have now been made into cool look flat buttons.
  • Keith Rules CMemDC class used to stop flickering.

  For an explantion on how to use this class please refer to Shekar's original article here.

Download Example Project - 24 KB



Comments

  • There are no comments yet. Be the first to comment!

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

Top White Papers and Webcasts

  • Live Event Date: December 11, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT Market pressures to move more quickly and develop innovative applications are forcing organizations to rethink how they develop and release applications. The combination of public clouds and physical back-end infrastructures are a means to get applications out faster. However, these hybrid solutions complicate DevOps adoption, with application delivery pipelines that span across complex hybrid cloud and non-cloud environments. Check out this …

  • Due to internal controls and regulations, the amount of long term archival data is increasing every year. Since magnetic tape does not need to be periodically operated or connected to a power source, there will be no data loss because of performance degradation due to the drive actuator. Read this white paper to learn about a series of tests that determined magnetic tape is a reliable long-term storage solution for up to 30 years.

Most Popular Programming Stories

More for Developers

RSS Feeds