home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 August / VPR9708A.ISO / D3TRIAL / INSTALL / DATA.Z / delphi32.exe / RCDATA / OCXSOURCE < prev    next >
Text File  |  1997-05-14  |  2KB  |  78 lines

  1. unit %A;
  2.  
  3. { This file contains pascal declarations imported from a type library.
  4.   This file will be written during each import or refresh of the type
  5.   library editor.  Changes to this file will be discarded during the
  6.   refresh process. }
  7.  
  8. { このファイルにはタイプライブラリから作成した PASCAL による宣言が収められ
  9.   ています。タイプライブラリエディタで更新をおこなうと内容が書き換えられます
  10.   このファイルを直接変更しても、タイプライブラリエディタによって上書きされる
  11.   ため変更内容は保存されません。
  12.   }
  13.  
  14. %H{ Version %J }
  15.  
  16. %Binterface
  17.  
  18. %I%G%C
  19.  
  20. implementation
  21.  
  22. %D
  23. end.
  24. |%N%A  %B = class(TOleControl)
  25.   private
  26. %C    FIntf: %O;
  27. %D  protected
  28.     procedure InitControlData; override;
  29.     procedure InitControlInterface(const Obj: IUnknown); override;
  30.   public
  31. %E    property ControlInterface: %O read FIntf;
  32. %F  published
  33. %H%I%J  end;
  34.  
  35. |procedure %B.InitControlData;
  36. const
  37. %Kbegin
  38.   ControlData := @CControlData;
  39. end;
  40.  
  41. procedure %B.InitControlInterface(const Obj: IUnknown);
  42. begin
  43.   FIntf := Obj as %O;
  44. end;
  45.  
  46. %L%M
  47. |function %I.Get_%B%L%D;
  48. begin
  49.   Result := ControlInterface.%B%K;
  50. end;
  51.  
  52. |procedure %I.Set_%B%M;
  53. begin
  54.   ControlInterface.%B%K := Value;
  55. end;
  56.  
  57. |procedure Register;
  58. begin
  59.   RegisterComponents('%E', [%F]);
  60. end;
  61. |%N  Co%P = class
  62.     class function Create: %O;
  63.     class function CreateRemote(const MachineName: string): %O;
  64.   end;
  65.  
  66. |class function Co%P.Create: %O;
  67. begin
  68.   Result := CreateComObject(Class_%P) as %O;
  69. end;
  70.  
  71. class function Co%P.CreateRemote(const MachineName: string): %O;
  72. begin
  73.   Result := CreateRemoteComObject(MachineName, Class_%P) as %O;
  74. end;
  75.  
  76. |
  77.  
  78.