Click here to Skip to main content
Licence 
First Posted 14 Jul 2002
Views 65,452
Bookmarked 28 times

Xguiplus - A set of Photoshop's-like color pickers

By | 14 Jul 2002 | Article
An MFC compliant Adobe Photoshop's-like Color Picker from xgui

Introduction

Jack Mesic wrote an extension to xgui written by Bobi B. xgui has a Photoshop-like color chooser. I think it is an incredible job and only added the following:

  • Interactive numerical HSV and RGB representations
  • Interactive hexadecimal representation (HTML)

Jacks version.

Bobi B's original version

How to use it:

Very easy! Simply add the following code in the header file of the class where you want to display the Color Picker Dialog:

#include "GTColorDialogDlg.h"

And in the .cpp file:

CGTColorDialogDlg dlg
dlg.SetColor(RGB(0,0,255));
int nResponse = dlg.DoModal()
if (nResponse == IDOK)
{
    COLORREF crReturn = dlg.GetColor();
}

That's all

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

About the Author

dswigger



United States United States

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralA little problem Pinmembervalleskon18:48 12 Oct '06  
GeneralA little bug found: PinmemberMaxVolgin3:01 30 May '06  
AnswerRe: A little bug found: PinmemberJohn Chapdelaine6:03 27 Aug '06  
GeneralThanx, PinmemberEPulse2:36 8 May '05  
GeneralHelp PinsussDuFF17:01 7 Feb '03  
GeneralStrange bug..solved. PinmemberAndreas Muegge6:02 16 Sep '02  
GeneralRe: Strange bug..solved. PinmemberDarkoK17:31 16 Jul '03  
GeneralGood Job PinmemberJohn O'Byrne4:58 22 Jul '02  
GeneralVery good but... PinmemberAndreas Muegge4:18 22 Jul '02  
GeneralRe: Very good but... Pinmemberdswigger7:12 22 Jul '02  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120517.1 | Last Updated 15 Jul 2002
Article Copyright 2002 by dswigger
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid