单选组控件

继承窗口控件。

通过控件ID更新单选组选中选项

/**   
 *  @brief 更新单选组选中选项   
 *  
 *  @param [in] iCtrlId 选中项ID,其值可以配合AiinoneIDE开发环境使用   
 *              
 *  @return 返回值 TRUE:成功;FALSE:失败,可能原因无效ID   
 *  
 *  @details More details   
 */   

BOOL SetRadioGroupSelectedById(INT iCtrlId);
例如:更新更新单选组选中选项A,其ID为#define ID_A 131074. SetRadioGroupSelectedById(ID_A);

通过控件Index更新单选组选中选项

/**   
 *  @brief 更新单选组选中选项   
 *  
 *  @param [in] iindex 选中项index,请慎用,因为index有时是不确定的,通常用在初始化场景   
 *              
 *  @return 返回值 TRUE:成功;FALSE:失败,可能原因无效index   
 *  
 *  @details More details   
 */   

BOOL SetRadioGroupSelectedByIndex(INT iindex);
例如:更新更新单选组选中选项A,其index为0. SetRadioGroupSelectedByIndex(0);

Copyright © 2021 深圳合一智联科技有限公司 all right reserved,powered by Gitbook最后修改时间: 2021-12-27 17:56:47

results matching ""

    No results matching ""