noobofthenoobs
Junior Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, cxTextEdit, cxMaskEdit, cxDropDownEdit, cxCheckComboBox, StdCtrls; type TForm1 = class(TForm) cxCheckComboBox1: TcxCheckComboBox; Button1: TButton; procedure FormCreate(Sender: TObject); procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); begin cxcheckcombobox1.States[1]:=cbsGrayed; end; procedure TForm1.FormCreate(Sender: TObject); begin cxcheckcombobox1.Properties.AllowGrayed:=true; end; end. |