別の質問でもう一度。
Raize の shelllist を使用しており、クリック イベントにコードを追加して、選択した項目 (ファイル、フォルダー、または空白) が有効かどうかをテストしたいと考えていますが、これを正しく行う方法がわかりません。
これが私が持っているものです。
procedure ZipCheck;
var
Path : string;
i : integer;
s : string;
DecompStream : TMemoryStream;
LExtention : string;
begin
Path := form2.FileList.SelectedItem.PathName;
form2.FNameEdit.Text := Path;
if form2.FileList.SelectedItem.IsValid = true then
begin
LExtention := TPath.GetExtension(form2.filelist.SelectedItem.PathName);
if tpath.GetExtension(LExtention) = '.zip' then
begin
Showmessage(LExtention);
end;
end;
end;
シェルリストの空白の領域をクリックすると、例外エラーが発生します。