After pushing a button I wanted to change the color of a panel to green:
ErrorDetectorPanel->Brush->Color = clLime;
doesn´t work.
ErrorDetectorPanel->Color = clLime;
ErrorDetectorPanel->Refresh();
doesn´t work.
with this addiction:
ErrorDetectorPanel->ParentColor = false;
ErrorDetectorPanel->Refresh();
it still doesn´t work.
tried it this way:
HBRUSH brush = CreateSolidBrush(RGB(0, 255, 0));
SetWindowLong(ErrorDetectorPanel->Handle,WM_ERASEBKGND, 0);
SetWindowLong(ErrorDetectorPanel->Handle,GCLP_HBRBACKGROUND, (LONG)brush);
TForm transparency is false same result after pushing the button.
How can I do it right?