【发布时间】:2019-07-20 10:05:39
【问题描述】:
在 firemonkey (RAD Studio 10.3) 中,我正在使用连接到数据库的 TStringGrid,并且我想更改特定列的文本对齐方式。我怎样才能做到这一点?更改 TextSettings 属性中的 HorzAlign,会更改所有列的对齐方式。
我在this page 中尝试了建议的解决方案,但没有奏效!在较新版本的 Firemonkey 中,以下解决方案代码会导致错误。
type TSpecificColumn = class(TColumn)
protected
function CreateCellControl: TStyledControl;override;
end;
TColumn 类中没有 CreateCellControl 函数可以被覆盖了!这是我得到的错误:
在基类中找不到方法 CreateCellControl。
【问题讨论】:
标签: delphi firemonkey tstringgrid rad-studio tgrid