Thanks for your answers !
Now I don't get the error message while compiling.
But borders still aren't visible while I change the properties of TBCButtons on runtime.
If you have any ideas...
Thanks again !
for ci:=0 to componentcount-1 do begin
if (components[ci] is TBCButton)
then begin
if (skin=true) then begin;skinbutton((components[ci] as TBCButton));end;
end;
procedure skinbutton(AButton: tbcbutton);
begin
with AButton do begin
memoryusage:=bmuhigh;
globalopacity:=200;//
Abutton.Rounding.RoundX:=0;
Abutton.Rounding.RoundY:=0;
with StateNormal do
begin
border.color:=clblack;
border.Style:=bboSolid;
border.Width:=1;
border.ColorOpacity:=255;
FontEx.Color := clwhite;
Background.Gradient1.StartColor := clwhite; //RGBToColor(103, 103, 103);
Background.Gradient1.EndColor := $00D3A274;//RGBToColor(103, 103, 103);
Background.Gradient1EndPercent:=100;
Background.Gradient2.StartColor := RGBToColor(103, 103, 103); //103
Background.Gradient2.EndColor := RGBToColor(80, 80, 80); //71
end;
with StateHover do
begin
Border.Color := RGBToColor(24, 24, 24);
FontEx.Color := clWhite;
Background.Gradient1.StartColor := RGBToColor(200, 200, 200); //118
Background.Gradient1.EndColor := RGBToColor(200, 200, 200); //118
Background.Gradient2.StartColor := RGBToColor(200, 200, 200); //117
Background.Gradient2.EndColor := RGBToColor(81, 81, 81);
end;
with StateClicked do
begin
Border.Color := RGBToColor(24, 24, 24);
FontEx.Color := clWhite;
Background.Gradient1.StartColor := RGBToColor(92, 92, 92);
Background.Gradient1.EndColor := RGBToColor(92, 92, 92);
Background.Gradient2.StartColor := RGBToColor(91, 91, 91);
Background.Gradient2.EndColor := RGBToColor(62, 62, 62);
end;
end;
end;