fGLDialog.pas 897 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. unit fGLDialog;
  2. interface
  3. uses
  4. Winapi.Windows,
  5. Winapi.Messages,
  6. System.SysUtils,
  7. System.Variants,
  8. System.Classes,
  9. Vcl.Graphics,
  10. Vcl.Controls,
  11. Vcl.Forms,
  12. Vcl.Dialogs,
  13. Vcl.StdCtrls,
  14. Vcl.ExtCtrls,
  15. fGLForm;
  16. type
  17. TGLDialog = class(TGLForm)
  18. PanelTop: TPanel;
  19. PanelMiddle: TPanel;
  20. PanelBottom: TPanel;
  21. ButtonOK: TButton;
  22. ButtonCancel: TButton;
  23. ButtonHelp: TButton;
  24. Memo: TMemo;
  25. procedure ButtonHelpClick(Sender: TObject);
  26. public
  27. function Execute: boolean; virtual;
  28. procedure ReadIniFile; override;
  29. private
  30. end;
  31. var
  32. GLDialog: TGLDialog;
  33. implementation
  34. {$R *.dfm}
  35. procedure TGLDialog.ButtonHelpClick(Sender: TObject);
  36. begin
  37. Application.HelpContext(HelpContext);
  38. end;
  39. function TGLDialog.Execute: boolean;
  40. begin
  41. Result := ShowModal = mrOk;
  42. end;
  43. procedure TGLDialog.ReadIniFile;
  44. begin
  45. inherited;
  46. //
  47. end;
  48. end.