Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一种解决方案来为 Dlphi 10.1 中的 fmx.grid 或 fmx.stringgrid 创建自定义列或行,例如 numberbox 列。有一些使用 CreateCellControl 功能的解释,但在 10.1 中不起作用
它似乎CreateCellControl在 Delphi 10.1 Berlin 中不再存在(它至少存在于我检查过的 XE7 中,也可能存在于其他版本中)。
CreateCellControl
我建议您使用TCurrencyColumnwhich 将条目限制为仅数字并将条目与列的右侧对齐。或者,您可以检查并防止OnSetValue事件中的错误条目。
TCurrencyColumn
OnSetValue