/* 设定与单选框部件关联的文本内容 */ LCUI_API void RadioButton_Text( LCUI_Widget widget, const char *text ) { LCUI_Widget label; label = RadioButton_GetLabel(widget); Label_SetText(label, text); }
void SetLabelText(int guin,int objn, const char*newtx) { VALIDATE_STRING(newtx); if ((guin<0) | (guin>=game.numgui)) quit("!SetLabelText: invalid GUI number"); if ((objn<0) | (objn>=guis[guin].numobjs)) quit("!SetLabelTexT: invalid object number"); if (guis[guin].get_control_type(objn)!=GOBJ_LABEL) quit("!SetLabelText: specified control is not a label"); GUILabel*guil=(GUILabel*)guis[guin].objs[objn]; Label_SetText(guil, newtx); }