10-04-2010, 07:15 PM
يمكنك تحميل مشروعي FTG و مشاهدة كيفية القيام بذلك .
انظر الاجرائية :
و ApplyShellExtension في الوحدة Gft_u.pas :
انظر الاجرائية :
كود :
procedure TForm1.StartScan(Param: String);
begin
// Directory
if DirectoryExists(IncludeTrailingPathDelimiter(Param)) then
begin
edit1.Text:=IncludeTrailingPathDelimiter(Param);
OnFtgDirScan(IncludeTrailingPathDelimiter(Param));
end;
// File
if FileExists(Param) then
begin
edit1.Text:=Param;
OnFtgFileScan(Param);
end;
end;
procedure TForm1.ShellOpsClick(Sender: TObject);
begin
ApplyShellExtension(Shell.Checked);
end;و ApplyShellExtension في الوحدة Gft_u.pas :
كود :
procedure ApplyShellExtension(AEnable: boolean);
