[問題] c++ XE4 設定appearance後的問題
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
BCB XE4
問題(Question):
設定Aappearancec後 動態增加radiogroup的item
想讓radiobutton的字變色卻沒辦法
預期的正確結果(Expected Output):
radiobutton的字變紅色
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版)
rgp_product->Items->AddObject(wstr_name, (TObject *)obj);
rgp_product->Controls[i]->StyleElements = TStyleElements(seClient+seBorder);
dynamic_cast<TRadioButton*>(rgp_product->Controls[i])->Font->Color = clRed;
補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.124.10.145
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章
14
30