MFC 对话框上的多个单选按钮组
我的对话框中有 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对话框的 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.