am2000reg.pas
上传用户:powellwoo
上传日期:2007-01-07
资源大小:109k
文件大小:1k
源码类别:

Delphi控件源码

开发平台:

C++ Builder

  1. {*******************************************************}
  2. {                                                       }
  3. {       AnimatedMenus/2000                              }
  4. {       Component registraton unit                      }
  5. {                                                       }
  6. {       Copyright (c) 1997-99 AnimatedMenus.com         }
  7. {       All rights reserved.                            }
  8. {                                                       }
  9. {*******************************************************}
  10. unit am2000reg;
  11. {$I am2000.inc}
  12. interface
  13. procedure Register;
  14. implementation
  15. uses
  16.   Classes, DsgnIntf,
  17.   am2000, am2000menuitem, am2000designer
  18. {$IFDEF Delphi3OrHigher}
  19.   , am2000shortcut
  20. {$ENDIF}
  21.   ;
  22. procedure Register;
  23. begin
  24.   RegisterComponents('AnimatedMenus/2000', [TMenuBar2000, TMainMenu2000, TPopupMenu2000]);
  25.   RegisterComponentEditor(TMainMenu2000,   T_AM2000_ComponentEditor);
  26.   RegisterComponentEditor(TPopupMenu2000,  T_AM2000_ComponentEditor);
  27.   RegisterPropertyEditor(TypeInfo(TEditableMenuItem2000), nil, '', T_AM2000_MenuDesigner);
  28. {$IFDEF Delphi3OrHigher}
  29.   RegisterPropertyEditor(TypeInfo(T_AM2000_ShortCut), nil, '', T_AM2000_ShortCutProperty);
  30. {$ENDIF}
  31. end;
  32. end.