夢里花落0921
2022-04-01 11:07:52
Option Menu中有一些漢字選項,要先判斷是哪個選項,再根據情況在多行文本中打印漢字,請問怎么解決?
3 回答

智慧大石
TA貢獻1946條經驗 獲得超3個贊
用下面的方法得到下拉文本框的索引就可以了 UF_STYLER_item_value_type_t select_index; select_index.item_id = ×××; select_index.item_attr = UF_STYLER_VALUE; select_index.indicator=UF_STYLER_INTEGER_VALUE; UF_STYLER_ask_value( ×, [$select_index)] index=select_index.value.integer;

喵喵時光機
TA貢獻1846條經驗 獲得超7個贊
剛開始我本想利用其子項subitem_index來解決的。 int b; UF_STYLER_item_value_type_t data; data.item_attr=UF_STYLER_VALUE; data.item_id=CHANGE_OPTION_0; b=data.subitem_index; 結果調試發現b的值恒為-1,與選項毫無關系。為什么subitem_index不能應用于這種情況呢?
添加回答
舉報
0/150
提交
取消