home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 May / VPR9705A.ISO / VPR_DATA / PROGRAM / CBTRIAL / SETUP / DATA.Z / SAMPREG.CPP < prev    next >
C/C++ Source or Header  |  1997-02-14  |  2KB  |  51 lines

  1. //---------------------------------------------------------------------------
  2. // Borland C++Builder
  3. // Copyright (c) 1987, 1997 Borland International Inc.  All Rights Reserved.
  4. //---------------------------------------------------------------------------
  5. // Sampreg.cpp
  6. //
  7. // This file registers several of the components which appear on the "Samples"
  8. // Component palette in the C++ Builder IDE.
  9. //---------------------------------------------------------------------------
  10.  
  11. #include <vcl/vcl.h>
  12. #pragma hdrstop
  13. #define REGISTER_ALL_CONTROLS
  14.  
  15.  
  16. #include "source\calendar.cpp"
  17. #include "source\colorgrd.cpp"
  18. #include "source\gauges.cpp"
  19. #include "source\spin.cpp"
  20. #include "source\piereg.cpp"
  21. #include "source\diroutln.cpp"
  22. #include "source\demolbl.cpp"
  23.  
  24.  
  25. namespace Sampreg {
  26.   void __fastcall Register()
  27.   {
  28.     TComponentClass classes[] = { __classid(TCalendar),
  29.                                   __classid(TColorGrid),
  30.                                   __classid(TGauge),
  31.                                   __classid(TSpinButton),
  32.                                   __classid(TSpinEdit),
  33.                                   __classid(TPie),
  34.                                   __classid(TDirectoryOutline),
  35.                                   __classid(TDemoLabel)
  36.                                 };
  37.  
  38.     RegisterComponents("Samples",
  39.                         classes,
  40.                         (sizeof(classes)/sizeof(classes[0])) - 1);
  41.  
  42.     //For the Pie component
  43.     RegisterComponentEditor(__classid(TPie), __classid(TPieEditor));
  44.     RegisterPropertyEditor(__typeinfo(TAngles),
  45.                            NULL,
  46.                            "",
  47.                            __classid(TAnglesProperty));
  48.  
  49.   } // Register
  50. }   // namespace Sampreg
  51.