gpt4 book ai didi

delphi - Firemonkey 复选框 : Is there a tristate option usable on Windows and MacOS platform?

转载 作者:行者123 更新时间:2023-12-04 10:40:06 25 4
gpt4 key购买 nike

我正在寻找一种方法来创建一个复选框,该复选框的状态为 undefined 以及状态为打开和关闭。这样的第三种状态在 Mac 上是否常见,如果不是,您如何在可以理解的情况下解决它?

最佳答案

是的,MacOS 本身支持第三种状态。引自 Apples Human Interface Guideline :

Use a mixed state when it makes sense. A checkbox should accurately reflect its state. If a checkbox is used to globally enable and disable multiple child checkboxes, it should show a mixed state—reflected by a dash—when those children are not all in the same state.



您需要创建自己的按钮类来实现这一点。要么使用添加三态选项的 FMX 样式按钮。或围绕 native 按钮的 FMX 包装器。如果你想成为原生的,你可以使用 TMS mCL component suite ,虽然这不是免费的。

关于delphi - Firemonkey 复选框 : Is there a tristate option usable on Windows and MacOS platform?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59968938/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com