說明:在 Wndows 顯示時,有時控件左方會顯示一條虛線
適用:Berlin Firemonkey
修復方法:
請將源碼 FMX.Platform.Win.pas 復制到自己的工程目錄裡,再進行修改。
procedure TPlatformWin.InvalidateWindowRect(const AForm: TCommonCustomForm; R: TRectF);
...略...
{---> WR := TRect.Create(Trunc(R.Left), Trunc(R.Top), Ceil(R.Right), Ceil(R.Bottom)); // 刪除代碼
{+++>} WR := TRect.Create(0, Trunc(R.Top), Ceil(R.Right), Ceil(R.Bottom)); // 增加代碼
...略...
end;
end;
end;
end;
問題重現:

修正後:
