cxCheckComboBox1顾名思义,就是CheckBox与ComboBox的组合选择控件
01] Item的添加
02]取已勾选的内容:
cxCheckComboBox1.Text
03]取已勾选的内容:
procedure TForm13.Button1Click(Sender: TObject); var idx, cnt: Integer; begin cnt := cxCheckComboBox1.Properties.Items.Count; for idx := 0 to cnt - 1 do if cbsChecked=cxCheckComboBox1.States[idx] then ShowMessage(cxCheckComboBox1.Properties.Items[idx].Description); end;
04]TcxCheckComboBox控件的默认选项怎么去掉‘None selected’
procedure TForm1.FormCreate(Sender: TObject); begin cxCheckComboBox1.Properties.EmptySelectionText := ''; end;
05]用下拉框第一个数据来填充:cxCheckComboBox1.States[0] := cbsChecked;
06]清空此框:cxCheckComboBox1.clear; 下拉Items还在
标签:控件,cnt,22,idx,Items,cxCheckComboBox1,学习,Properties From: https://www.cnblogs.com/tulater/p/18199600