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.
我已经使用 Delphi 大约一个月了,所以我相对较新。我有一个复选框,当我更改数据字段时它会变灰只是想知道为什么会这样?
您的 TDBCheckBox 是灰色的,因为分配给它的数据字段的值与 ValueChecked 或 ValueUnchecked 属性不匹配。来自文档
如果字段的内容与 ValueChecked 或 ValueUnchecked 中的任何字符串都不匹配,则复选框显示为灰色。