ufrmAbout.pas 816 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. unit ufrmAbout;
  2. interface
  3. uses
  4. Windows, Messages, SysUtils, Variants, Classes, Graphics,
  5. Controls, Forms, Dialogs, StdCtrls, uIFormShow, mybean.core.intf;
  6. type
  7. TfrmAbout = class(TForm, IShowAsModal, IShowAsNormal, IFreeObject)
  8. Memo1: TMemo;
  9. private
  10. { Private declarations }
  11. public
  12. { Public declarations }
  13. function showAsModal: Integer; stdcall;
  14. procedure showAsNormal; stdcall;
  15. procedure FreeObject; stdcall;
  16. destructor Destroy; override;
  17. end;
  18. var
  19. frmAbout: TfrmAbout;
  20. implementation
  21. {$R *.dfm}
  22. { TfrmAbout }
  23. destructor TfrmAbout.Destroy;
  24. begin
  25. inherited;
  26. end;
  27. procedure TfrmAbout.FreeObject;
  28. begin
  29. self.Free;
  30. end;
  31. function TfrmAbout.showAsModal: Integer;
  32. begin
  33. Result :=ShowModal;
  34. end;
  35. procedure TfrmAbout.showAsNormal;
  36. begin
  37. self.Show;
  38. end;
  39. end.