When I use the TAdvPanel on a styled form, there's a small artefact (looking like a rectangle) on the caption on the left.
To reproduce set a style like Carbon for the app and place a TAdvPanel on it and set the following properties to expose the issue:
with AdvPanel1 do
begin
Caption.GradientDirection := gdHorizontal;
Caption.Color := StyleServices.GetSystemColor(clBtnHighlight);
Caption.ColorTo := StyleServices.GetSystemColor(clBtnShadow);
Caption.MinMaxButton := True;
Caption.MinMaxButtonColor := StyleServices.GetSystemColor(clBtnText);
Caption.MinMaxCaption := True;
Caption.Text := 'AdvPanel';
Caption.Visible := True;
Font.style := [fsbold];
Font.Color := StyleServices.GetSystemColor(clWindowText);
end;
begin
Caption.GradientDirection := gdHorizontal;
Caption.Color := StyleServices.GetSystemColor(clBtnHighlight);
Caption.ColorTo := StyleServices.GetSystemColor(clBtnShadow);
Caption.MinMaxButton := True;
Caption.MinMaxButtonColor := StyleServices.GetSystemColor(clBtnText);
Caption.MinMaxCaption := True;
Caption.Text := 'AdvPanel';
Caption.Visible := True;
Font.style := [fsbold];
Font.Color := StyleServices.GetSystemColor(clWindowText);
end;
When the panel is collapsed the caption is fine.
When expanded there's a black rectangle on the left of the caption.
I can send screenshots if needed.