Closed vectoris closed 8 months ago
Try with those changes and give me a feed-back:
procedure TStyledButtonRender.DrawBackgroundAndBorder(
const ACanvas: TCanvas;
const AStyleAttribute: TStyledButtonAttributes);
var
DrawRect, SplitButtonRect: TRect;
begin
//Erase Background
EraseBackground(ACanvas);
//Don't draw button face for Flat Buttons
if not (FFlat and (FState in [bsUp, bsDisabled]) and not (FMouseInControl)) or
Focused then
begin
DrawRect := FOwnerControl.ClientRect;
//Draw Button Shape
CanvasDrawshape(ACanvas, DrawRect, FStyleDrawType, FStyleRadius);
end;
//Draw Bar and Triangle
if FDropDownRect.Width > 0 then
begin
SplitButtonRect.Left := DrawRect.Width - FDropDownRect.Width;
if FFlat then
ACanvas.Pen.Style := psClear;
CanvasDrawBarAndTriangle(ACanvas, FDropDownRect,
{$IFDEF D10_3+}FOwnerControl.ScaleFactor{$ELSE}1{$ENDIF},
ACanvas.Pen.Color, AStyleAttribute.FontColor);
end;
end;
These changes solve the problem.
Fixed in 3.2.0 version
This needs to be fixed. If this is not a bug, then it should be possible to make this arrow visible.