MFC 对话框上的多个单选按钮组

发布于 2024-08-21 20:29:12 字数 72 浏览 3 评论 0原文

我的对话框中有 2 组单选框。如何指定哪个按钮属于哪个组?因为现在当我选择一个时,所有其他的都被取消选择,甚至是来自另一组的那些。

I have 2 groups of radio boxes on a dialog. How can I specify which button is in which group? Because right now when I select one, all the others get unselected, even the ones from the other group.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

留一抹残留的笑 2024-08-28 20:29:12

对话框的 Tab 键顺序和 Group 属性完全规定了哪些单选按钮属于哪些组。

每个单选按钮都属于选项卡顺序中前一个主单选按钮的组。主单选按钮的 Group 属性设置为 True

您可以通过转到对话框编辑器并按 Ctrl+D 来设置 Tab 键顺序。然后,按照您希望选项卡切换的顺序单击从 1 到 N 的每个控件。

The tab order of the dialog, and the Group property completely dictates which radio buttons belong to which groups.

Each radio button belongs to the group of the previous main radio button in the tab order. The main radio button has the Group property set to True.

You can set the tab order by going to the dialog editor and pressing Ctrl+D. You then click on each control from 1 to N in the order you want the tabbing to go.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文