fClass.pas
上传用户:hylc_2004
上传日期:2014-01-23
资源大小:46800k
文件大小:5k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1. unit fClass;
  2. {
  3. //
  4. // Components : Registration for 1stClass
  5. //
  6. // Copyright (c) 1999 by Woll2Woll Software
  7. //
  8. }
  9. interface
  10. {$i fcIfDef.pas}
  11. uses Classes, Graphics, DB, fcColorCombo, fcButton,
  12.   {$ifdef fcdelphi6up}
  13.   designintf,
  14.   {$else}
  15.   dsgnintf,
  16.   {$endif}
  17.   fcLabel,
  18.   fcStatusBar, fcImageForm, fcImager, fcCollectionEditor, fcButtonGroup,
  19.   fcOutlookBar, fcClearPanel, fcDBTreeView, fctreeview,
  20.   Controls, fcPropEdt, fcFontCombo, fcShapeBtn, fcImgBtn, fcTreeCombo,
  21.   fcBitmap, fcOutlookList, fcDemoRichEdit, fcCollection,
  22.   {fcimagepanel, }fcpanel , fccalcedit, fctreeheader,
  23.   fccombo,
  24.   fctrackbar,
  25.   fcProgressBar;
  26. procedure Register;
  27. implementation
  28. {$r 1stClass.dcr}
  29. procedure Register;
  30. begin
  31.   RegisterComponents('1stClass', [TfcTreeView]);
  32.   RegisterComponents('1stClass', [TfcDBTreeView]);
  33.   RegisterComponents('1stClass', [TfcButtonGroup, TfcOutlookBar]);
  34.   RegisterComponents('1stClass', [TfcImageForm]);
  35.   RegisterComponents('1stClass', [TfcStatusBar]);
  36.   RegisterComponents('1stClass', [TfcImager]);
  37.   RegisterComponents('1stClass', [TfcDBImager]);
  38.   RegisterComponents('1stClass', [TfcShapeBtn]);
  39.   RegisterComponents('1stClass', [TfcImageBtn]);
  40.   RegisterComponents('1stClass', [TfcTreeCombo]);
  41.   RegisterComponents('1stClass', [TfcFontCombo]);
  42.   RegisterComponents('1stClass', [TfcColorCombo]);
  43.   RegisterComponents('1stClass', [TfcColorList]);
  44.   RegisterComponents('1stClass', [TfcLabel]);
  45. //  RegisterComponents('1stClass', [TfcDBLabel]);
  46. //  RegisterComponents('1stClass', [TfcImagePanel]);
  47.   RegisterComponents('1stClass', [TfcPanel]);
  48.   RegisterComponents('1stClass', [TfcGroupBox]);
  49.   RegisterComponents('1stClass', [TfcCalcEdit]);
  50.   RegisterComponents('1stClass', [TfcTreeHeader]);
  51.   RegisterComponents('1stClass', [TfcTrackBar]);
  52.   RegisterComponents('1stClass', [TfcProgressBar]);
  53. //  RegisterComponents('1stClass', [TfcTransparentPanel]);
  54.   RegisterClasses([TfcDemoRichEdit]);
  55.   RegisterPropertyEditor(TypeInfo(string), TfcCustomButtonGroup,
  56.     'ButtonClassName', TfcButtonGroupControlClassEditor);
  57.   RegisterPropertyEditor(TypeInfo(TCaption), TfcCustomLabel, 'Caption', TfcLabelCaptionEditor);
  58.   RegisterPropertyEditor(TypeInfo(TCaption), TfcCustomBitBtn, 'Caption', TfcButtonCaptionEditor);
  59. //  RegisterPropertyEditor(TypeInfo(TfcButtonGroupItems), TfcCustomButtonGroup,
  60. //    'Items', TfcButtonGroupItemsEditor);
  61. //  RegisterPropertyEditor(TypeInfo(TBitmap), TfcImageBtn, '', TfcImageBtnImageEditor);
  62.   RegisterPropertyEditor(TypeInfo(TfcStatusPanels), TfcCustomStatusBar, 'Panels', TfcStatusBarPanelsEditor);
  63. //  RegisterComponentEditor(TypeInfo(TfcTreeView), TfcTreeHeaderSectionsEditor);
  64.   RegisterPropertyEditor(TypeInfo(TfcTreeNodes), TfcCustomTreeView, 'Items',  TfcTreeViewItemsProperty);
  65.   RegisterPropertyEditor(TypeInfo(TfcTreeNodes), TfcCustomTreeCombo, 'Items',
  66.     TfcTreeComboItemsProperty);
  67.   RegisterPropertyEditor(TypeInfo(TfcBitmap), nil, '', TfcBitmapEditor);
  68.   RegisterPropertyEditor(TypeInfo(TfcButtonGroupItem), nil, '', TfcButtonGroupSelectedEditor);
  69.   RegisterPropertyEditor(TypeInfo(TColor), TfcCustomColorCombo, 'SelectedColor', TfcColorComboSelectedColorEditor);
  70.   RegisterPropertyEditor(TypeInfo(TColor), TfcCustomImageBtn, 'TransparentColor', TfcImageBtnTranColorEditor);
  71. //  RegisterComponents('1stClass', [TfcOutlookList]);
  72.   RegisterPropertyEditor(TypeInfo(TComponent), TfcCustomImageBtn, 'ExtImage', TfcImageBtnExtImageEditor);
  73.   RegisterPropertyEditor(TypeInfo(TComponent), TfcCustomImageBtn, 'ExtImageDown', TfcImageBtnExtImageEditor);
  74.   RegisterPropertyEditor(TypeInfo(TfcCustomBitBtn), TfcCustomOutlookBar, 'ActivePage', TfcOutlookBarActivePageEditor);
  75.   RegisterPropertyEditor(TypeInfo(TfcCollection), TPersistent, '', TfcCollectionEditor);
  76.   RegisterPropertyEditor(TypeInfo(TComponent), TfcCustomCombo, 'Controller', TfcControllerProperty);
  77.   RegisterComponentEditor(TfcTreeHeader, TfcHeaderEditor);
  78.   RegisterComponentEditor(TfcCustomTreeView, TfcTreeViewEditor);
  79.   RegisterComponentEditor(TfcCustomLabel, TfcComponentEditor);
  80.   RegisterComponentEditor(TfcDBCustomTreeView, TfcComponentEditor);
  81.   RegisterComponentEditor(TfcCustomButtonGroup, TfcButtonGroupEditor);
  82.   RegisterComponentEditor(TfcOutlookList, TfcCustomOutlookListEditor);
  83.   RegisterComponentEditor(TfcOutlookPanel, TfcOutlookPanelEditor);
  84.   RegisterComponentEditor(TfcCustomImageForm, TfcImageFormEditor);
  85.   RegisterComponentEditor(TfcCustomStatusBar, TfcStatusBarEditor);
  86.   RegisterComponentEditor(TfcCustomImager, TfcImagerEditor);
  87.   RegisterComponentEditor(TfcCustomShapeBtn, TfcCustomBtnEditor);
  88.   RegisterComponentEditor(TfcCustomImageBtn, TfcImgBtnEditor);
  89.   RegisterComponentEditor(TfcCustomTreeCombo, TfcTreeComboEditor);
  90.   RegisterComponentEditor(TfcCustomFontCombo, TfcComponentEditor);
  91.   RegisterComponentEditor(TfcCustomColorCombo, TfcComponentEditor);
  92.   RegisterComponentEditor(TfcCustomColorList, TfcComponentEditor);
  93. end;
  94. end.