home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / borland / cb / setup / cbuilder / data.z / HCTLEDIT.HPP < prev    next >
C/C++ Source or Header  |  1997-02-28  |  4KB  |  108 lines

  1. //----------------------------------------------------------------------------
  2. // HCtlEdit.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
  3. // From: HCtlEdit.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef HCtlEditHPP
  6. #define HCtlEditHPP
  7. //----------------------------------------------------------------------------
  8. #include <LibHelp.hpp>
  9. #include <ComCtrls.hpp>
  10. #include <StdCtrls.hpp>
  11. #include <Dialogs.hpp>
  12. #include <Forms.hpp>
  13. #include <Controls.hpp>
  14. #include <Graphics.hpp>
  15. #include <Classes.hpp>
  16. #include <Messages.hpp>
  17. #include <Windows.hpp>
  18. #include <SysUtils.hpp>
  19. #include <System.hpp>
  20. #pragma warn -par
  21. #pragma warn -hid 
  22. #pragma warn -inl
  23.  
  24. namespace Hctledit
  25. {
  26. //-- type declarations -------------------------------------------------------
  27. class __declspec(delphiclass) THeaderControlEditor;
  28. class __declspec(pascalimplementation) THeaderControlEditor : public Forms::TForm
  29. {
  30.     typedef Forms::TForm inherited;
  31.     
  32. __published:
  33.     Stdctrls::TGroupBox* GroupBox1;
  34.     Stdctrls::TListBox* SectionList;
  35.     Stdctrls::TButton* NewButton;
  36.     Stdctrls::TButton* DeleteButton;
  37.     Stdctrls::TGroupBox* GroupBox2;
  38.     Stdctrls::TEdit* SectionText;
  39.     Stdctrls::TEdit* SectionWidth;
  40.     Stdctrls::TEdit* SectionMinWidth;
  41.     Stdctrls::TEdit* SectionMaxWidth;
  42.     Stdctrls::TComboBox* SectionStyle;
  43.     Stdctrls::TComboBox* SectionAlignment;
  44.     Stdctrls::TCheckBox* SectionAllowClick;
  45.     Stdctrls::TButton* OkButton;
  46.     Stdctrls::TButton* CancelButton;
  47.     Stdctrls::TButton* ApplyButton;
  48.     Stdctrls::TButton* HelpButton;
  49.     Stdctrls::TLabel* Label1;
  50.     Stdctrls::TLabel* Label2;
  51.     Stdctrls::TLabel* Label3;
  52.     Stdctrls::TLabel* Label4;
  53.     Stdctrls::TLabel* Label5;
  54.     void __fastcall FormCreate(System::TObject* Sender);
  55.     void __fastcall SectionListClick(System::TObject* Sender);
  56.     void __fastcall NewButtonClick(System::TObject* Sender);
  57.     void __fastcall DeleteButtonClick(System::TObject* Sender);
  58.     void __fastcall SectionListMouseDown(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState 
  59.         Shift, int X, int Y);
  60.     void __fastcall SectionListDragOver(System::TObject* Sender, System::TObject* Source, int X, int Y, 
  61.         Controls::TDragState State, bool &Accept);
  62.     void __fastcall SectionListDragDrop(System::TObject* Sender, System::TObject* Source, int X, int Y)
  63.         ;
  64.     void __fastcall SectionControlExit(System::TObject* Sender);
  65.     void __fastcall SectionEditChange(System::TObject* Sender);
  66.     void __fastcall SectionComboChange(System::TObject* Sender);
  67.     void __fastcall OkButtonClick(System::TObject* Sender);
  68.     void __fastcall CancelButtonClick(System::TObject* Sender);
  69.     void __fastcall ApplyButtonClick(System::TObject* Sender);
  70.     void __fastcall HelpButtonClick(System::TObject* Sender);
  71.     
  72. private:
  73.     Comctrls::THeaderControl* HeaderControl;
  74.     Comctrls::THeaderSections* TargetSections;
  75.     int FocusIndex;
  76.     bool UpdatingControls;
  77.     bool Modified;
  78.     void __fastcall UpdateControls(void);
  79.     void __fastcall UpdateSection(void);
  80.     void __fastcall UpdateSectionList(void);
  81. public:
  82.     /* TForm.Create */ __fastcall virtual THeaderControlEditor(Classes::TComponent* AOwner) : Forms::TForm(
  83.         AOwner) { }
  84.     /* TForm.CreateNew */ __fastcall THeaderControlEditor(Classes::TComponent* AOwner, int Dummy) : Forms::
  85.         TForm(AOwner, Dummy) { }
  86.     /* TForm.Destroy */ __fastcall virtual ~THeaderControlEditor(void) { }
  87.     
  88. public:
  89.     /* TWinControl.CreateParented */ __fastcall THeaderControlEditor(HWND ParentWindow) : Forms::TForm(
  90.         ParentWindow) { }
  91.     
  92. };
  93.  
  94. //-- var, const, procedure ---------------------------------------------------
  95. extern bool __fastcall EditHeaderSections(Comctrls::THeaderSections* HeaderSections);
  96.  
  97. }    /* namespace Hctledit */
  98.  
  99. #pragma warn .par
  100. #pragma warn .hid 
  101. #pragma warn .inl
  102.  
  103. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  104. using namespace Hctledit;
  105. #endif
  106. //-- end unit ----------------------------------------------------------------
  107. #endif    // HCtlEdit
  108.