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.

About author

Dr. Yilmaz Yoru has 35+ years of coding with more than 30+ programming languages, mostly C++ on Windows, Android, Mac-OS, iOS, Linux, and some other operating systems. He graduated and received his MSc and PhD degrees from the Department of Mechanical Engineering of Eskisehir Osmangazi University. He is the founder and CEO of ESENJA LLC Company. His interests are Programming, Thermodynamics, Fluid Mechanics, Artificial Intelligence, 2D & 3D Designs, and high-end innovations.
Related posts
C++C++11C++14C++17C++20Introduction to C++Learn C++

Learn Copy Constructors in C++ Classes

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

Learn How To Use Types Of Destructors In C++?

C++C++11C++14Learn C++Syntax

How To Convert u32string To A wstring In C++

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

How To Learn The Move Constructors In Modern C++?

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