C++C++11C++14C++17ComponentsLanguage FeatureLearn C++

Quick Look At Basic Color Components On Windows In C++ Builder (QuickLook Part 6)

This article is about Color Components which is used to select or display Colors. If you are new to ARGB color please refer to this article about Colors in Modern C++

ColorButton (TColorButton)
It is a standard button that displays a color. It can be used to pop up color picker window then backs with selected color. May be to show foreground background colors, etc. It can be used with OnClick() event as in this example below that changes its color randomly on every click;

ColorBox (TColorBox)
Represents a rectangular-shaped color indicator. This box can be used to show selected color.

ColorComboBox (TColorComboBox)
ColorComboBox shows a combo box that allows you to select a color from a color palette. This example below sets Color of a ColorBox when the Color of ColorListBox is changed;

ColorListBox (TColorListBox)
ColorListBox is a combo box that allows you to select an alpha color from a color spectrum, so users can easily select

ColorPicker (TColorPicker)
Color picker shows a color selector that displays the entire color spectrum. A TColorPicker component is a color selector that displays a color spectrum and lets you pick any color by moving a dot-style selector. TColorPicker can be attached to a TColorQuad component. It is used with OnChange() event to set selected color to another things as below

ColorPanel (TColorPanel)
ColorPanel is a color selector component complete with alpha channel selection. A TColorPanel component is a color selector that displays a color spectrum represented as a THueTrackBar, an alpha channel track bar selector, and a color quad. These make the TColorPanel component a great color selector.

ColorQuad (TColorQuad)
TColorQuad component is generally attached to TColorPicker to show shades of selected colors. In this way, every time you change the Color in this color picker, the color quad component automatically updates to the color selected in the color picker, further allowing you to tweak the saturation and luminance.


Oh hi there ๐Ÿ‘‹
Itโ€™s nice to meet you.

Sign up to receive awesome C++ content in your inbox, every day.

We donโ€™t spam! Read our privacy policy for more info.

Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial

Free C++Builder Community Edition

About author

33+ years of coding with more than 30+ programming languages, mostly C++ on Windows, Android, Mac-OS, iOS, Linux and some other operating systems. Dr. Yilmaz Yoru was born in 1974, Eskisehir-Turkey. He graduated from the department of Mechanical Engineering of Eskisehir Osmangazi University in 1997. One year later he started to work in the same university as an assistant. He received his MSc and PhD degrees from the same department of the same university. He has married and he is a father of a son. Some of his interests are Programming, Thermodynamics, Fluid Mechanics and Artificial Intelligence. He also likes the graphical 2D & 3D design and high-end innovations.
Related posts
C++C++11C++14C++17Learn C++

How To Use The All-Powerful swscanf function In Your C++ App

C++ComponentsLanguage FeatureLearn C++

How To Use A Sharpen Effect in C+ Software On Windows?

C++C++11C++14C++17Introduction to C++Learn C++

What Is The Erase WString Method In A Modern C++ App

C++C++17Introduction to C++Learn C++

This Is How Trivial Copy Constructors Work In A C++ App

Worth reading...
Top C++ Compilers for Windows in 2020