unit Unit1;interfaceuses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Buttons, StdCtrls;type
TForm1 = class(TForm)
ListBox1: TListBox;
ListBox2: TListBox;
SpeedButton1: TSpeedButton;
procedure FormCreate(Sender: TObject);
procedure SpeedButton1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.DFM}procedure TForm1.FormCreate(Sender: TObject);
var
ch:'A'..'Z';
begin
for ch:='A' to 'Z' do
listbox1.Items.Add (ch);
end;procedure TForm1.SpeedButton1Click(Sender: TObject);
begin
listbox2.Items.add (listbox1.items[listbox1.ItemIndex])
end;end.
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Buttons, StdCtrls;type
TForm1 = class(TForm)
ListBox1: TListBox;
ListBox2: TListBox;
SpeedButton1: TSpeedButton;
procedure FormCreate(Sender: TObject);
procedure SpeedButton1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.DFM}procedure TForm1.FormCreate(Sender: TObject);
var
ch:'A'..'Z';
begin
for ch:='A' to 'Z' do
listbox1.Items.Add (ch);
end;procedure TForm1.SpeedButton1Click(Sender: TObject);
begin
listbox2.Items.add (listbox1.items[listbox1.ItemIndex])
end;end.
解决方案 »
- 线程问题 麻烦大家指导
- 关于DLL中用定时器的问题,高手请进
- 如何读写excel文件,请各路高手指点
- 学delphi,没实践的机会,越来越无聊了
- Rave 关于打印设置的问题。
- 自定义纸张大小
- 我原来在ACCESS数据库存放的图片是BMP,如何把它转换为JPG?
- 我该出这笔钱吗?说出建议及理由者有分!
- 用ado连接excel,commandtype='commandtext',commandtext='select * from Sheet2$'提示;from子句语法错误
- 请高手帮忙!我在type区定义了
- 4.请问数据库中的BLOB是什么类型呢?
- 请问adoconectstring 怎么设啊,oledbjet4.0连接access出来的都是绝对路径,怎么让多个client连接到同一个access啊?
object Form1: TForm1
Left = 192
Top = 107
BorderStyle = bsSingle
Caption = 'Form1'
ClientHeight = 131
ClientWidth = 350
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
OnCreate = FormCreate
PixelsPerInch = 96
TextHeight = 13
object SpeedButton1: TSpeedButton
Left = 147
Top = 16
Width = 49
Height = 25
Caption = '---->'
OnClick = SpeedButton1Click
end
object ListBox1: TListBox
Left = 3
Top = 5
Width = 137
Height = 121
ItemHeight = 13
TabOrder = 0
end
object ListBox2: TListBox
Left = 202
Top = 5
Width = 145
Height = 121
ItemHeight = 13
TabOrder = 1
end
end