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

  1. //----------------------------------------------------------------------------
  2. // dbcoledt.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
  3. // From: dbcoledt.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef dbcoledtHPP
  6. #define dbcoledtHPP
  7. //----------------------------------------------------------------------------
  8. #include <StrEdit.hpp>
  9. #include <Menus.hpp>
  10. #include <consts.hpp>
  11. #include <TypInfo.hpp>
  12. #include <ComCtrls.hpp>
  13. #include <DBGrids.hpp>
  14. #include <StdCtrls.hpp>
  15. #include <Dialogs.hpp>
  16. #include <Forms.hpp>
  17. #include <Controls.hpp>
  18. #include <Graphics.hpp>
  19. #include <Classes.hpp>
  20. #include <Messages.hpp>
  21. #include <Windows.hpp>
  22. #include <SysUtils.hpp>
  23. #include <System.hpp>
  24. #pragma warn -par
  25. #pragma warn -hid 
  26. #pragma warn -inl
  27.  
  28. namespace Dbcoledt
  29. {
  30. //-- type declarations -------------------------------------------------------
  31. class __declspec(delphiclass) TGridColEditor;
  32. class __declspec(pascalimplementation) TGridColEditor : public Forms::TForm
  33. {
  34.     typedef Forms::TForm inherited;
  35.     
  36. __published:
  37.     Stdctrls::TGroupBox* GB;
  38.     Stdctrls::TListBox* ColumnList;
  39.     Stdctrls::TButton* NewButton;
  40.     Stdctrls::TButton* DeleteButton;
  41.     Stdctrls::TButton* OkButton;
  42.     Stdctrls::TButton* CancelButton;
  43.     Stdctrls::TButton* ApplyButton;
  44.     Stdctrls::TButton* HelpButton;
  45.     Dialogs::TColorDialog* ColorDialog1;
  46.     Stdctrls::TButton* AddAllFields;
  47.     Stdctrls::TButton* DeleteAll;
  48.     Comctrls::TPageControl* PageControl1;
  49.     Stdctrls::TLabel* Label1;
  50.     Stdctrls::TComboBox* ColFieldName;
  51.     Stdctrls::TEdit* ColWidth;
  52.     Stdctrls::TComboBox* ColAlignment;
  53.     Stdctrls::TComboBox* TitleAlignment;
  54.     Stdctrls::TEdit* TitleCaption;
  55.     Stdctrls::TComboBox* TitleColor;
  56.     Stdctrls::TButton* TitleFont;
  57.     Stdctrls::TComboBox* ColColor;
  58.     Stdctrls::TComboBox* ColButtonStyle;
  59.     Stdctrls::TEdit* ColDropDownRows;
  60.     Stdctrls::TComboBox* ColReadOnly;
  61.     Stdctrls::TButton* ColFont;
  62.     Stdctrls::TButton* ColPickList;
  63.     Dialogs::TFontDialog* FontDialog1;
  64.     Stdctrls::TButton* RestoreDefaults;
  65.     Comctrls::TTabSheet* ts1;
  66.     Menus::TPopupMenu* PM;
  67.     Menus::TMenuItem* Newcolumn1;
  68.     Menus::TMenuItem* Deletecolumn1;
  69.     Menus::TMenuItem* Addallfields1;
  70.     Menus::TMenuItem* Deleteallcolumns1;
  71.     void __fastcall FormCreate(System::TObject* Sender);
  72.     void __fastcall ColumnListClick(System::TObject* Sender);
  73.     void __fastcall NewButtonClick(System::TObject* Sender);
  74.     void __fastcall DeleteButtonClick(System::TObject* Sender);
  75.     void __fastcall ColumnListMouseDown(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState 
  76.         Shift, int X, int Y);
  77.     void __fastcall ColumnListDragOver(System::TObject* Sender, System::TObject* Source, int X, int Y, 
  78.         Controls::TDragState State, bool &Accept);
  79.     void __fastcall ColumnListDragDrop(System::TObject* Sender, System::TObject* Source, int X, int Y);
  80.         
  81.     void __fastcall ControlExit(System::TObject* Sender);
  82.     void __fastcall EditChange(System::TObject* Sender);
  83.     void __fastcall OkButtonClick(System::TObject* Sender);
  84.     void __fastcall ApplyButtonClick(System::TObject* Sender);
  85.     void __fastcall ColFieldNameDropDown(System::TObject* Sender);
  86.     void __fastcall ColorDropDown(System::TObject* Sender);
  87.     void __fastcall ColorDblClick(System::TObject* Sender);
  88.     void __fastcall ColFontClick(System::TObject* Sender);
  89.     void __fastcall TitleFontClick(System::TObject* Sender);
  90.     void __fastcall DeleteAllClick(System::TObject* Sender);
  91.     void __fastcall AddAllFieldsClick(System::TObject* Sender);
  92.     void __fastcall ColPickListClick(System::TObject* Sender);
  93.     void __fastcall TaggedControlChanged(System::TObject* Sender);
  94.     void __fastcall ComboClick(System::TObject* Sender);
  95.     void __fastcall NonTaggedControlClick(System::TObject* Sender);
  96.     void __fastcall FormClose(System::TObject* Sender, Forms::TCloseAction &Action);
  97.     void __fastcall RestoreDefaultsClick(System::TObject* Sender);
  98.     void __fastcall TaggedControlKeyDown(System::TObject* Sender, Word &Key, Classes::TShiftState Shift
  99.         );
  100.     void __fastcall HelpButtonClick(System::TObject* Sender);
  101.     
  102. private:
  103.     Dbgrids::TCustomDBGrid* TargetGrid;
  104.     Dbgrids::TDBGridColumns* TargetColumns;
  105.     Dbgrids::TDBGridColumns* UndoColumns;
  106.     int FocusIndex;
  107.     bool UpdatingControls;
  108.     bool Modified;
  109.     Classes::TStrings* TempStrings;
  110.     void __fastcall UpdateControls(void);
  111.     void __fastcall UpdateColumn(void);
  112.     void __fastcall UpdateColumnList(void);
  113.     void __fastcall GetColorStrings(const System::AnsiString s);
  114.     void __fastcall TagControl(System::TObject* Sender, bool Assigned);
  115. public:
  116.     /* TForm.Create */ __fastcall virtual TGridColEditor(Classes::TComponent* AOwner) : Forms::TForm(AOwner
  117.         ) { }
  118.     /* TForm.CreateNew */ __fastcall TGridColEditor(Classes::TComponent* AOwner, int Dummy) : Forms::TForm(
  119.         AOwner, Dummy) { }
  120.     /* TForm.Destroy */ __fastcall virtual ~TGridColEditor(void) { }
  121.     
  122. public:
  123.     /* TWinControl.CreateParented */ __fastcall TGridColEditor(HWND ParentWindow) : Forms::TForm(ParentWindow
  124.         ) { }
  125.     
  126. };
  127.  
  128. //-- var, const, procedure ---------------------------------------------------
  129. extern bool __fastcall EditDBGridColumns(Dbgrids::TDBGridColumns* Columns);
  130.  
  131. }    /* namespace Dbcoledt */
  132.  
  133. #pragma warn .par
  134. #pragma warn .hid 
  135. #pragma warn .inl
  136.  
  137. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  138. using namespace Dbcoledt;
  139. #endif
  140. //-- end unit ----------------------------------------------------------------
  141. #endif    // dbcoledt
  142.