Skip to content

ColorKey

property

Delphi
property ColorKey: TColor read GetColorKey write SetColorKey  default DEF_ColorKey;
C++Builder
__property System::Uitypes::TColor ColorKey = {read=GetColorKey, write=SetColorKey, default=1048592};
C#
public int ColorKey { get; set; }
VB.NET
Public Property ColorKey As Integer
C++/Qt
int GetColorKey ();
void SetColorKey (int Value);

Used to change the default color keys used for window transparency and related effects. Enable the window transparency with ColorKeyEnabled, then invoke SetWindowTransparency to set your form's or window transparency. You can find sample code in the transparency checkbox code of the "display" tab of the MainDemo project.