?? unit4.pas
字號:
unit Unit4;
interface
{$H+}
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TListKeyForm = class(TForm)
ListBox1: TListBox;
Button1: TButton;
Button2: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
szPath: String[255];
{ Public declarations }
end;
var
ListKeyForm: TListKeyForm;
implementation
{$R *.dfm}
procedure TListKeyForm.Button1Click(Sender: TObject);
var
i: integer;
begin
if ListBox1.SelCount <> 1 then
begin
MessageBox(Handle, 'Select only 1 item.', 'List Key paths', MB_OK);
Exit;
end;
for i := 0 to ListBox1.Count do
begin
if(ListBox1.Selected[i]) then
Break;
end;
szPath := ListBox1.Items[i];
ModalResult := mrOk;
end;
end.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -