
LpItemID : PItemIDList;
BrowseInfo : TBrowseInfo;
DisplayName : array[0..max_path] of char;
TempPath : array[0..max_path] of char;
begin
if key=VK_F4 then begin
FillChar(BrowseInfo, SizeOf(TBrowseInfo), #0);
BrowseInfo.HwnDownEr := FProperties.Handle;
BrowseInfo.PSzDisplayName := @DisplayName;
TitleName := 'Пожалуйста выберите директорию для архива БД';
BrowseInfo.LpSzTitle := PChar(TitleName);
BrowseInfo.UlFlags := Bif_ReturnOnLyfsDirs;
LpItemID := SHBrowseForFolder(BrowseInfo);
if LpItemid <> nil then begin
SHGetPathF romIDList(LpItemID, TempPath);
EditPathArhive.T ext:=TempPath;
{ ShowMessage(T empPath);}
GlobalF reePtr(LpItemID);
end;
end;
end;
end.
unit SaveLoad;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ComCtrls, ExtCtrls;
type
TFSaveLoad = class(TForm)
ButtonSave: TButton;
PanelMain: TPanel;
SBMain: TStatusBar;
ButtonLoads: TButton;
OpenDialogFile: TOpenDialog;
procedure ButtonSaveClick(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure ButtonLoadsClick(Sender: TObject);
procedure FormActivate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FSaveLoad: TFSaveLoad;