Sign in to follow this  
vicer

color selection dialog

Recommended Posts

vicer    100
hi, I want to create a dialog for colour selection in c++ without using win32 or MFC.It should have a slider control for Red Green Blue ..any suggestion for it...coding will be very helpful....

Share this post


Link to post
Share on other sites
vicer    100
Quote:
Original post by vicer
hi,
I want to create a dialog for colour selection in c++ without using win32 or MFC.It should have a slider control for Red Green Blue ..any suggestion for it...coding will be very helpful....


i want to integrate it with torque game engine...thats why i dont want to use win32 or mfc ,as far as the gui is concerned i can do it torque but the function requiring color selection and RGB control that i want to be written in c++..any suggestion

Share this post


Link to post
Share on other sites
Evil Steve    2017
Quote:
Original post by vicer
i want to integrate it with torque game engine...thats why i dont want to use win32 or mfc ,as far as the gui is concerned i can do it torque but the function requiring color selection and RGB control that i want to be written in c++..any suggestion
It's 99% dependant on your API. How are you drawing the slider? Textured quads or something?

Share this post


Link to post
Share on other sites
vicer    100
Quote:
Original post by vicer
hi,
I want to create a dialog for colour selection in c++ without using win32 or MFC.It should have a slider control for Red Green Blue ..any suggestion for it...coding will be very helpful....


The slider part is inbuilt in torque game engine..thats not a problem..just i want a function that can display color option and its clickable for selection.

Share this post


Link to post
Share on other sites
vicer    100
Quote:
Original post by vicer
hi,
I want to create a dialog for colour selection in c++ without using win32 or MFC.It should have a slider control for Red Green Blue ..any suggestion for it...coding will be very helpful....


hi,
is there any way to implement it.....any link where i can find it..

Share this post


Link to post
Share on other sites
Telastyn    3777
Right, 3 sliders and a preview. The preview is often a null or white texture with diffuse for the color in question.

Where exactly are you running into problems?

Share this post


Link to post
Share on other sites
vicer    100
Quote:
Original post by Telastyn
Right, 3 sliders and a preview. The preview is often a null or white texture with diffuse for the color in question.

Where exactly are you running into problems?


hi,
Telastyn.. the problem is to implement in c++...the coding part.I want the coding of it....or any link where i can find its description.

Share this post


Link to post
Share on other sites
QuinnJohns    103
vicer, if you want, I actually wrote a small color selection utility via Visual C++, that does your (R, G, B), and displays the hex values -- if you want the source - if that'll help you any -- there are a lot of prebuilt functions inside of visual c++ to accomplish things like that, with ease.

if you want a copy, just send me a PM. :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this