多谢了!
解决方案 »
- 一个关于utc时间的问题,求助大家!
- 使用第三范示怎样保证数据库的整体数据安全与高效.
- 如何实现像QQ那样在登录窗口里选择‘记住密码',就可以记住不同用户名的密码的功能??
- 到底是容易还是难,在线等待,急!!!!!!
- 如何获得 SQL Server 的安装路径。多谢
- Delphi6.0 连接到MySQl
- 怎样做这样的安装程序?高手进来看看
- 如何在程序中设置GBgrid的option的各值
- BMP文件的读写程序中的bfType='MB'?
- 请教各位高手,用delphi 作套打 有没有好的控件 ?
- 如何在rar或Zip文件中读取或添加注释?
- 求购DRP分销管理系统Delphi+SQLSERVER源码.....
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, CheckLst;type
TForm1 = class(TForm)
CheckListBox1: TCheckListBox;
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.FormCreate(Sender: TObject);
var i:integer;
begin
for i:=1 to 9 do
CheckListBox1.Items.Add(IntToSTr(i));
end;procedure TForm1.Button1Click(Sender: TObject);
var i:integer;
begin
for i:=0 to CheckListBox1.Count-1 do
if ChecklistBox1.Checked[i] then
ShowMessage(CheckListBox1.Items.Strings[i]);
end;end.
var
I:integer;
begin
for I:=0 to CheckListBox1.Items.Count-1 do
begin
if (I mod 2) =0 then
begin
CheckListBox1.ItemEnabled[I]:=True;
CheckListBox1.Checked[I]:=True;
end
else
begin
CheckListBox1.ItemEnabled[I]:=False;
CheckListBox1.Checked[I]:=False;
end;
end;
end;