QBDBFrm2.pas 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {*******************************************************}
  2. { }
  3. { Delphi Visual Component Library }
  4. { QBuilder dialog component }
  5. { }
  6. { Copyright (c) 1996-2003 Sergey Orlik }
  7. { }
  8. { Written by: }
  9. { Sergey Orlik }
  10. { product manager }
  11. { Russia, C.I.S. and Baltic States (former USSR) }
  12. { Borland Moscow office }
  13. { Internet: [email protected], }
  14. { [email protected] }
  15. { http://www.fast-report.com }
  16. { }
  17. {*******************************************************}
  18. unit QBDBFrm2;
  19. {$IFDEF FPC}
  20. {$MODE Delphi}
  21. {$ENDIF}
  22. interface
  23. uses
  24. Forms, Dialogs,
  25. StdCtrls, ExtCtrls;
  26. type
  27. TOQBDBForm2 = class(TForm)
  28. BtnOk: TButton;
  29. BtnCancel: TButton;
  30. Bevel1: TBevel;
  31. CheckDB: TCheckBox;
  32. EdtDB: TEdit;
  33. btnDir: TButton;
  34. Label1: TLabel;
  35. DlgSelect: TOpenDialog;
  36. CheckView: TCheckBox;
  37. procedure btnDbClick(Sender: TObject);
  38. end;
  39. implementation
  40. {$R *.lfm}
  41. procedure TOQBDBForm2.btnDbClick(Sender: TObject);
  42. var
  43. s: string;
  44. begin
  45. GetDir(0, s);
  46. DlgSelect.InitialDir := s;
  47. if DlgSelect.Execute then
  48. EdtDB.Text := DlgSelect.FileName;
  49. end;
  50. end.