Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

An RGB chooser dialog

0.00/5 (No votes)
1 Oct 2000 1  
A simple color chooser dialog that uses slifer controls to allow the user to combine different RGB values
  • Download source files - 37 Kb
  • Sample Image - ColorDlg.gif

    Introduction

    This RGB Color dialog enables the user to change the color with Red, Green and Blue components using the slider control from values 0 to 255, mix them with different values to get new custom colors as desired. It also reports the values of each color component to the user through the text edit boxes as they change value in respond to the sliders' values.

    The Sample Application

    The sample MFC program demontrates the use of this dialog to change the back color of the view to the one selected in the RGB Color dialog.

    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here