home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------
- // ColEdit.hpp - dcc32 generated hdr (DO NOT EDIT) rev: -2
- // From: ColEdit.pas
- //----------------------------------------------------------------------------
- #ifndef ColEditHPP
- #define ColEditHPP
- //----------------------------------------------------------------------------
- #ifndef LibHelpHPP
- #include <LibHelp.hpp>
- #endif
-
- #ifndef ComCtrlsHPP
- #include <ComCtrls.hpp>
- #endif
-
- #ifndef StdCtrlsHPP
- #include <StdCtrls.hpp>
- #endif
-
- #ifndef DialogsHPP
- #include <Dialogs.hpp>
- #endif
-
- #ifndef FormsHPP
- #include <Forms.hpp>
- #endif
-
- #ifndef ControlsHPP
- #include <Controls.hpp>
- #endif
-
- #ifndef GraphicsHPP
- #include <Graphics.hpp>
- #endif
-
- #ifndef ClassesHPP
- #include <Classes.hpp>
- #endif
-
- #ifndef MessagesHPP
- #include <Messages.hpp>
- #endif
-
- #ifndef WindowsHPP
- #include <Windows.hpp>
- #endif
-
- #ifndef SysUtilsHPP
- #include <SysUtils.hpp>
- #endif
-
- #ifndef SystemHPP
- #include <System.hpp>
- #endif
-
- namespace Coledit
- {
- //-- type declarations -------------------------------------------------------
- class __declspec(delphiclass) TColInfo;
- class __declspec(pascalimplementation) TColInfo : public System::TObject
- {
- typedef TColInfo ThisClass;
- typedef System::TObject inherited;
-
- private:
- Classes::TList *FOwner;
- System::AnsiString FCaption;
- System::Integer FWidth;
- System::Integer FIndex;
- TAlignment FAlignment;
- Comctrls::TWidth FWidthType;
- System::Integer __fastcall GetIndex(void);
-
- public:
- __fastcall TColInfo(Classes::TList *AOwner, Comctrls::TListColumn *Column);
- __fastcall virtual ~TColInfo(void);
- __property System::Integer Index = {read=GetIndex, nodefault};
- __property Classes::TList * Owner = {read=FOwner, nodefault};
- };
-
- class __declspec(delphiclass) TListViewColumns;
- class __declspec(pascalimplementation) TListViewColumns : public Forms::TForm
- {
- typedef TListViewColumns ThisClass;
- typedef Forms::TForm inherited;
-
- __published:
- Stdctrls::TGroupBox *ColumnGroupBox;
- Stdctrls::TGroupBox *PropGroupBox;
- Stdctrls::TListBox *ColumnListBox;
- Stdctrls::TButton *New;
- Stdctrls::TButton *Delete;
- Stdctrls::TButton *Ok;
- Stdctrls::TButton *Cancel;
- Stdctrls::TButton *Apply;
- Stdctrls::TButton *Help;
- Stdctrls::TLabel *Label1;
- Stdctrls::TLabel *Label4;
- Stdctrls::TEdit *TextEdit;
- Stdctrls::TComboBox *AlignmentEdit;
- Stdctrls::TGroupBox *GroupBox1;
- Stdctrls::TEdit *WidthEdit;
- Stdctrls::TRadioButton *HWidthBtn;
- Stdctrls::TRadioButton *IWidthBtn;
- Stdctrls::TRadioButton *WidthBtn;
- void __fastcall ValueChanged(System::TObject *Sender);
- void __fastcall DeleteClick(System::TObject *Sender);
- void __fastcall TextEditExit(System::TObject *Sender);
- void __fastcall IndexEditExit(System::TObject *Sender);
- void __fastcall WidthEditExit(System::TObject *Sender);
- void __fastcall ColumnListBoxClick(System::TObject *Sender);
- void __fastcall NewClick(System::TObject *Sender);
- void __fastcall FormCreate(System::TObject *Sender);
- void __fastcall ApplyClick(System::TObject *Sender);
- void __fastcall AlignmentEditExit(System::TObject *Sender);
- void __fastcall FormDestroy(System::TObject *Sender);
- void __fastcall ColumnListBoxDragOver(System::TObject *Sender, System::TObject *Source, System::Integer
- X, System::Integer Y, Controls::TDragState State, System::Boolean &Accept);
- void __fastcall ColumnListBoxDragDrop(System::TObject *Sender, System::TObject *Source, System::Integer
- X, System::Integer Y);
- void __fastcall ColumnListBoxStartDrag(System::TObject *Sender, Controls::TDragObject *&DragObject)
- ;
- void __fastcall ColumnListBoxEndDrag(System::TObject *Sender, System::TObject *Target, System::Integer
- X, System::Integer Y);
- void __fastcall ColumnListBoxMouseDown(System::TObject *Sender, Controls::TMouseButton Button, Classes::TShiftState
- Shift, System::Integer X, System::Integer Y);
- void __fastcall HWidthBtnClick(System::TObject *Sender);
- void __fastcall HelpClick(System::TObject *Sender);
-
- private:
- Classes::TList *FInfoList;
- System::AnsiString FDefaultText;
- System::Integer FDragIndex;
- Comctrls::TListColumns *FColumns;
- void __fastcall FlushControls(void);
- void __fastcall GetItem(Comctrls::TListColumn *Value);
- TColInfo *__fastcall GetColInfo(System::Integer Index);
- System::AnsiString __fastcall ListBoxText(TColInfo *Value);
- void __fastcall SetItem(TColInfo *Value);
- void __fastcall SetListBoxText(System::Integer Index, const System::AnsiString S);
- void __fastcall SetStates(void);
-
- public:
- __property TColInfo * ColItems[System::Integer Index] = {read=GetColInfo};
- __property Comctrls::TListColumns * Columns = {read=FColumns, nodefault};
- __property System::AnsiString DefaultText = {read=FDefaultText, nodefault};
- __property Classes::TList * InfoList = {read=FInfoList, nodefault};
- public:
- /* !! TForm.Create */ __fastcall virtual TListViewColumns(Classes::TComponent *AOwner) : Forms::TForm(
- AOwner) { }
- /* !! TForm.CreateNew */ __fastcall TListViewColumns(Classes::TComponent *AOwner, System::Integer Dummy
- ) : Forms::TForm(AOwner, Dummy) { }
- /* !! TForm.Destroy */ __fastcall virtual ~TListViewColumns(void) { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
- extern System::Boolean __fastcall EditListViewColumns(Comctrls::TListColumns *AColumns);
-
- } /* namespace Coledit */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Coledit;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // ColEdit
-