在FMX中创建一个支持双模式和右旋语言的网格最好的方法是什么?我尝试过fmxrtl,但是它有很多错误,谢谢。
发布于 2022-05-18 05:19:38
您的应用程序是否仅适用于Windows ?如果是,则 I使用一个函数来检测它是否为Bidi字符串,然后使用TTextLayout 我在这里的测试 only,尝试使用SKIA4Delphi (XE7+)支持从右到左
我测试了一个Android小应用程序ScreenShot
procedure TForm1.Grid1DrawColumnCell(Sender: TObject; const Canvas: TCanvas;
const Column: TColumn; const Bounds: TRectF; const Row: Integer;
const Value: TValue; const State: TGridDrawStates);
begin
if (Column.Index=1) AND (Row>=1)
then begin
Canvas.Fill.Color:=TAlphaColors.Red;
Canvas.FillText(Bounds,Value.ToString,false,1,[TFillTextFlag.RightToLeft],TTextAlign.Leading);
end
else Column.DefaultDrawCell(Canvas,bounds,row,value,state);
end;https://stackoverflow.com/questions/72259007
复制相似问题