将单选按钮添加到现有组 - MFC
我正在尝试向现有组框(MFC 应用程序)添加一个新的单选按钮。已经有四个按钮了。我已向该组添加了新的单选按钮,但应用程序将其视为不同的组,并且不与其他按钮同步。我已检查 GROUP 属性,该属性设置为 false。
任何帮助将不胜感激...
I am trying to add a new radio button to an existing group box (MFC application). Already there are four buttons. I have added new radio button to this group but application is treating it as different group and does not synchronize with other buttons. I have check GROUP property which is set to false.
Any help would be appreciated...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是正确的,您需要使用“Group”属性,但与 Tab Order(从菜单中)结合使用。
根据 Tab 顺序,第一个选中 Group 属性的按钮将被视为该组中的第一个控件,后续控件将被视为该组的一部分。当找到选中组的控件时,将启动一个新组。
您的新按钮可能不符合正确的 Tab 键顺序,因此不属于该组。
希望有帮助
另请参阅此链接:
You are correct that you need to use the 'Group' property but in conjuntion with Tab Order (from the menu) .
According to the Tab Order, the first button that has the Group property checked is deemed to be the first control in the group, the following controls are deemed to be part of the Group. A new Group is started when a control with Group checked is found.
Your new button is probably not in the right Tab Order and therefore not part of the Group.
Hope that helps
Also refer this link: