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.

close

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 was born in 1974, Eskisehir-Turkey, started coding in college and graduated from the department of Mechanical Engineering of Eskisehir Osmangazi University in 1997. He worked as a research assistant at the same university for more than 10 years. He received his MSc and PhD degrees from the same department at the same university. Since 2012, he is the founder and CEO of Esenja LLC Company. He has married and he is a father of a son. Some of his interests are Programming, Thermodynamics, Fluid Mechanics, Artificial Intelligence, 2D & 3D Designs, and high-end innovations.
Related posts
C++C++11C++14C++17C++20Learn C++Syntax

What Is An Eligible Copy Assignment Operator In C++?

C++C++11C++14C++17C++20Learn C++Syntax

What Is A Trivial Copy Assignment Operator In C++?

C++C++11C++14C++17C++20Learn C++Syntax

What Is Uppercase T in C++ Syntax?

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

What Is An Implicitly-defined Copy Assignment Operator In C++?

Worth reading...
Top 6 C++ IDEs For Building Native Windows Apps In 2020