Re: Any kind of ->Color of CheckBox, RadioButton, Label...


2003-08-28 01:53:57 PM
cppbuilder105
You can also use C style cast to convert the hex numbers into TColor
(It's as safe as static_cast in this case)
Color = (TColor)0x00ffffff; // Pure White
Color = (TColor)0x00000000; // Black
Color = (TColor)-0x7fffffff-1; // Gray (lowest color)
Color = (TColor)0x7fffffff; // Black (Highest color)
Color = (TColor)0x000000ff; // Pure Red
Color = (TColor)0x0000ff00; // Pure Green
Color = (TColor)0x00ff0000; // Pure Blue
Color = (TColor)0x0000ffff; // Yellow
Color = (TColor)0x00ffff00; // Aqua
Color = (TColor)0x00ff00ff; // Purple
Color = (TColor)0x00123456; // Brown
Rodolfo