home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------
- // dbcoledt.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
- // From: dbcoledt.pas
- //----------------------------------------------------------------------------
- #ifndef dbcoledtHPP
- #define dbcoledtHPP
- //----------------------------------------------------------------------------
- #include <StrEdit.hpp>
- #include <Menus.hpp>
- #include <consts.hpp>
- #include <TypInfo.hpp>
- #include <ComCtrls.hpp>
- #include <DBGrids.hpp>
- #include <StdCtrls.hpp>
- #include <Dialogs.hpp>
- #include <Forms.hpp>
- #include <Controls.hpp>
- #include <Graphics.hpp>
- #include <Classes.hpp>
- #include <Messages.hpp>
- #include <Windows.hpp>
- #include <SysUtils.hpp>
- #include <System.hpp>
- #pragma warn -par
- #pragma warn -hid
- #pragma warn -inl
-
- namespace Dbcoledt
- {
- //-- type declarations -------------------------------------------------------
- class __declspec(delphiclass) TGridColEditor;
- class __declspec(pascalimplementation) TGridColEditor : public Forms::TForm
- {
- typedef Forms::TForm inherited;
-
- __published:
- Stdctrls::TGroupBox* GB;
- Stdctrls::TListBox* ColumnList;
- Stdctrls::TButton* NewButton;
- Stdctrls::TButton* DeleteButton;
- Stdctrls::TButton* OkButton;
- Stdctrls::TButton* CancelButton;
- Stdctrls::TButton* ApplyButton;
- Stdctrls::TButton* HelpButton;
- Dialogs::TColorDialog* ColorDialog1;
- Stdctrls::TButton* AddAllFields;
- Stdctrls::TButton* DeleteAll;
- Comctrls::TPageControl* PageControl1;
- Stdctrls::TLabel* Label1;
- Stdctrls::TComboBox* ColFieldName;
- Stdctrls::TEdit* ColWidth;
- Stdctrls::TComboBox* ColAlignment;
- Stdctrls::TComboBox* TitleAlignment;
- Stdctrls::TEdit* TitleCaption;
- Stdctrls::TComboBox* TitleColor;
- Stdctrls::TButton* TitleFont;
- Stdctrls::TComboBox* ColColor;
- Stdctrls::TComboBox* ColButtonStyle;
- Stdctrls::TEdit* ColDropDownRows;
- Stdctrls::TComboBox* ColReadOnly;
- Stdctrls::TButton* ColFont;
- Stdctrls::TButton* ColPickList;
- Dialogs::TFontDialog* FontDialog1;
- Stdctrls::TButton* RestoreDefaults;
- Comctrls::TTabSheet* ts1;
- Menus::TPopupMenu* PM;
- Menus::TMenuItem* Newcolumn1;
- Menus::TMenuItem* Deletecolumn1;
- Menus::TMenuItem* Addallfields1;
- Menus::TMenuItem* Deleteallcolumns1;
- void __fastcall FormCreate(System::TObject* Sender);
- void __fastcall ColumnListClick(System::TObject* Sender);
- void __fastcall NewButtonClick(System::TObject* Sender);
- void __fastcall DeleteButtonClick(System::TObject* Sender);
- void __fastcall ColumnListMouseDown(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState
- Shift, int X, int Y);
- void __fastcall ColumnListDragOver(System::TObject* Sender, System::TObject* Source, int X, int Y,
- Controls::TDragState State, bool &Accept);
- void __fastcall ColumnListDragDrop(System::TObject* Sender, System::TObject* Source, int X, int Y);
-
- void __fastcall ControlExit(System::TObject* Sender);
- void __fastcall EditChange(System::TObject* Sender);
- void __fastcall OkButtonClick(System::TObject* Sender);
- void __fastcall ApplyButtonClick(System::TObject* Sender);
- void __fastcall ColFieldNameDropDown(System::TObject* Sender);
- void __fastcall ColorDropDown(System::TObject* Sender);
- void __fastcall ColorDblClick(System::TObject* Sender);
- void __fastcall ColFontClick(System::TObject* Sender);
- void __fastcall TitleFontClick(System::TObject* Sender);
- void __fastcall DeleteAllClick(System::TObject* Sender);
- void __fastcall AddAllFieldsClick(System::TObject* Sender);
- void __fastcall ColPickListClick(System::TObject* Sender);
- void __fastcall TaggedControlChanged(System::TObject* Sender);
- void __fastcall ComboClick(System::TObject* Sender);
- void __fastcall NonTaggedControlClick(System::TObject* Sender);
- void __fastcall FormClose(System::TObject* Sender, Forms::TCloseAction &Action);
- void __fastcall RestoreDefaultsClick(System::TObject* Sender);
- void __fastcall TaggedControlKeyDown(System::TObject* Sender, Word &Key, Classes::TShiftState Shift
- );
- void __fastcall HelpButtonClick(System::TObject* Sender);
-
- private:
- Dbgrids::TCustomDBGrid* TargetGrid;
- Dbgrids::TDBGridColumns* TargetColumns;
- Dbgrids::TDBGridColumns* UndoColumns;
- int FocusIndex;
- bool UpdatingControls;
- bool Modified;
- Classes::TStrings* TempStrings;
- void __fastcall UpdateControls(void);
- void __fastcall UpdateColumn(void);
- void __fastcall UpdateColumnList(void);
- void __fastcall GetColorStrings(const System::AnsiString s);
- void __fastcall TagControl(System::TObject* Sender, bool Assigned);
- public:
- /* TForm.Create */ __fastcall virtual TGridColEditor(Classes::TComponent* AOwner) : Forms::TForm(AOwner
- ) { }
- /* TForm.CreateNew */ __fastcall TGridColEditor(Classes::TComponent* AOwner, int Dummy) : Forms::TForm(
- AOwner, Dummy) { }
- /* TForm.Destroy */ __fastcall virtual ~TGridColEditor(void) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TGridColEditor(HWND ParentWindow) : Forms::TForm(ParentWindow
- ) { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
- extern bool __fastcall EditDBGridColumns(Dbgrids::TDBGridColumns* Columns);
-
- } /* namespace Dbcoledt */
-
- #pragma warn .par
- #pragma warn .hid
- #pragma warn .inl
-
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Dbcoledt;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // dbcoledt
-