将单选按钮添加到现有组-MFC [英] Add radio button to existing group - MFC

查看:73
本文介绍了将单选按钮添加到现有组-MFC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我试图将新的单选按钮添加到现有的组框(MFC应用程序).已经有四个按钮.我已向该组添加了新的单选按钮,但应用程序将其视为不同的组,并且未与其他按钮同步.我有一个检查组属性,它设置为false.

任何帮助将不胜感激...

Hi All,

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...

推荐答案

您是正确的,您需要使用"Group"属性,但需要结合Tab键(从菜单中选择) <已删除订单=">.

根据选项卡顺序,选中组"属性的第一个按钮被视为组中的第一个控件,以下控件被视为组的一部分.当找到选中组"的控件时,将启动一个新的组.

您的新按钮可能不在正确的Tab顺序中,因此不属于组.

希望对您有所帮助:)
You are correct that you need to use the ''Group'' property but in conjuntion with Tab Order (from the menu <removed order="">.

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 :)


这篇关于将单选按钮添加到现有组-MFC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆