Whenever I change the color of a TSplitter in code, or in the IDE it doesn't work.
Is there some bug or am I doing something wrong. I have also noticed that the IDE in general doesn't often respond properly to color changes, but at least changes made at runtime should work.
Here is the offending code.
procedure TfrmHometel.SetSplitterSizes;
var
i: integer;
begin
for i:= 0 to ComponentCount - 1 do
begin
if Components[i] is TSplitter then
begin
with TSplitter(Components[i]) do
begin
if Cursor = crHSplit then
Width := 7;
if Cursor = crVSplit then
Height := 7;
;
Color := clBlue;
end;
end;
end;
end;