gpt4 book ai didi

delphi - 如何在 TMainmenu 的项目前面打勾?

转载 作者:行者123 更新时间:2023-12-03 18:17:58 26 4
gpt4 key购买 nike

我想在单击 TMainMenu 项目前打勾或“x”。有什么办法吗?

image

最佳答案

启用菜单项的AutoCheck属性(property)。链接引用将其描述为:

AutoCheck

Indicates whether the menu item's checked state toggles automatically when the item is clicked.

When AutoCheck is true, then every time the menu item is clicked, the value of the Checked property toggles automatically before the OnClick event occurs. When AutoCheck is false, the application must explicitly set the value of the Checked property (for example, in an OnClick event handler).

关于delphi - 如何在 TMainmenu 的项目前面打勾?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49773771/

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