骨质素控制是特殊的。 由于标签可能永远得不到重视,只要你试图把重点放在使用其关键板 m的标签上,标签就把重点放在了表格的下一个控制上。
This is intended for use with textboxes and comboboxes, which don t have any built-in facility for displaying a label (in contrast to the check box and option button controls). To set up a mnemonic for these controls, you position a label next to them, set a mnemonic for it, and ensure that it comes right before the textbox in the tab order. That way, when the user activates the keyboard mnemonic for the label, it automatically sets focus to the textbox control. You ve seen this all over the place in Windows:
如果你必须(尽管我确实不肯定你为什么要这样做),你就能够完全控制检查箱。 贴上标签的门槛(&Visible
),然后贴上你希望与之合作的检查箱的标签。 利用视频演播室中的“TbIndex配置选择,确保如果标签有制指数n,检查箱控制有制成指数n+1。
没有必要凌驾于<代码>ProcessCmdKey或任何其他困难的东西。