home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / Runimage / Cbuilder4 / Include / Vcl / CHECKLST.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-26  |  5.1 KB  |  154 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1999 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'CheckLst.pas' rev: 4.00
  6.  
  7. #ifndef CheckLstHPP
  8. #define CheckLstHPP
  9.  
  10. #pragma delphiheader begin
  11. #pragma option push -w-
  12. #include <Menus.hpp>    // Pascal unit
  13. #include <Forms.hpp>    // Pascal unit
  14. #include <StdCtrls.hpp>    // Pascal unit
  15. #include <Controls.hpp>    // Pascal unit
  16. #include <Graphics.hpp>    // Pascal unit
  17. #include <Classes.hpp>    // Pascal unit
  18. #include <SysUtils.hpp>    // Pascal unit
  19. #include <Messages.hpp>    // Pascal unit
  20. #include <Windows.hpp>    // Pascal unit
  21. #include <SysInit.hpp>    // Pascal unit
  22. #include <System.hpp>    // Pascal unit
  23.  
  24. //-- user supplied -----------------------------------------------------------
  25.  
  26. namespace Checklst
  27. {
  28. //-- type declarations -------------------------------------------------------
  29. class DELPHICLASS TCheckListBox;
  30. #pragma pack(push, 4)
  31. class PASCALIMPLEMENTATION TCheckListBox : public Stdctrls::TCustomListBox 
  32. {
  33.     typedef Stdctrls::TCustomListBox inherited;
  34.     
  35. private:
  36.     bool FAllowGrayed;
  37.     bool FFlat;
  38.     int FStandardItemHeight;
  39.     Classes::TNotifyEvent FOnClickCheck;
  40.     Classes::TList* FSaveStates;
  41.     void __fastcall ResetItemHeight(void);
  42.     void __fastcall DrawCheck(const Windows::TRect &R, Stdctrls::TCheckBoxState AState);
  43.     void __fastcall SetChecked(int Index, bool Checked);
  44.     bool __fastcall GetChecked(int Index);
  45.     void __fastcall SetState(int Index, Stdctrls::TCheckBoxState AState);
  46.     Stdctrls::TCheckBoxState __fastcall GetState(int Index);
  47.     void __fastcall ToggleClickCheck(int Index);
  48.     void __fastcall InvalidateCheck(int Index);
  49.     System::TObject* __fastcall CreateWrapper(int Index);
  50.     System::TObject* __fastcall ExtractWrapper(int Index);
  51.     System::TObject* __fastcall GetWrapper(int Index);
  52.     bool __fastcall HaveWrapper(int Index);
  53.     void __fastcall SetFlat(bool Value);
  54.     HIDESBASE MESSAGE void __fastcall CNDrawItem(Messages::TWMDrawItem &Message);
  55.     HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
  56.     HIDESBASE MESSAGE void __fastcall WMDestroy(Messages::TWMNoParams &Msg);
  57.     
  58. protected:
  59.     virtual void __fastcall DrawItem(int Index, const Windows::TRect &Rect, Stdctrls::TOwnerDrawState State
  60.         );
  61.     DYNAMIC void __fastcall SetItemData(int Index, int AData);
  62.     DYNAMIC int __fastcall GetItemData(int Index);
  63.     DYNAMIC void __fastcall KeyPress(char &Key);
  64.     DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, 
  65.         int Y);
  66.     DYNAMIC void __fastcall ResetContent(void);
  67.     DYNAMIC void __fastcall DeleteString(int Index);
  68.     DYNAMIC void __fastcall ClickCheck(void);
  69.     virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
  70.     virtual void __fastcall CreateWnd(void);
  71.     virtual void __fastcall DestroyWnd(void);
  72.     int __fastcall GetCheckWidth(void);
  73.     
  74. public:
  75.     __fastcall virtual TCheckListBox(Classes::TComponent* AOwner);
  76.     __fastcall virtual ~TCheckListBox(void);
  77.     __property bool Checked[int Index] = {read=GetChecked, write=SetChecked};
  78.     __property Stdctrls::TCheckBoxState State[int Index] = {read=GetState, write=SetState};
  79.     
  80. __published:
  81.     __property Classes::TNotifyEvent OnClickCheck = {read=FOnClickCheck, write=FOnClickCheck};
  82.     __property Align ;
  83.     __property bool AllowGrayed = {read=FAllowGrayed, write=FAllowGrayed, default=0};
  84.     __property Anchors ;
  85.     __property BiDiMode ;
  86.     __property BorderStyle ;
  87.     __property Color ;
  88.     __property Columns ;
  89.     __property Constraints ;
  90.     __property Ctl3D ;
  91.     __property DragCursor ;
  92.     __property DragKind ;
  93.     __property DragMode ;
  94.     __property Enabled ;
  95.     __property bool Flat = {read=FFlat, write=SetFlat, default=1};
  96.     __property Font ;
  97.     __property ImeMode ;
  98.     __property ImeName ;
  99.     __property IntegralHeight ;
  100.     __property ItemHeight ;
  101.     __property Items ;
  102.     __property ParentBiDiMode ;
  103.     __property ParentColor ;
  104.     __property ParentCtl3D ;
  105.     __property ParentFont ;
  106.     __property ParentShowHint ;
  107.     __property PopupMenu ;
  108.     __property ShowHint ;
  109.     __property Sorted ;
  110.     __property Style ;
  111.     __property TabOrder ;
  112.     __property TabStop ;
  113.     __property TabWidth ;
  114.     __property Visible ;
  115.     __property OnClick ;
  116.     __property OnDblClick ;
  117.     __property OnDragDrop ;
  118.     __property OnDragOver ;
  119.     __property OnDrawItem ;
  120.     __property OnEndDock ;
  121.     __property OnEndDrag ;
  122.     __property OnEnter ;
  123.     __property OnExit ;
  124.     __property OnKeyDown ;
  125.     __property OnKeyPress ;
  126.     __property OnKeyUp ;
  127.     __property OnMeasureItem ;
  128.     __property OnMouseDown ;
  129.     __property OnMouseMove ;
  130.     __property OnMouseUp ;
  131.     __property OnStartDock ;
  132.     __property OnStartDrag ;
  133. public:
  134.     #pragma option push -w-inl
  135.     /* TWinControl.CreateParented */ inline __fastcall TCheckListBox(HWND ParentWindow) : Stdctrls::TCustomListBox(
  136.         ParentWindow) { }
  137.     #pragma option pop
  138.     
  139. };
  140.  
  141. #pragma pack(pop)
  142.  
  143. //-- var, const, procedure ---------------------------------------------------
  144.  
  145. }    /* namespace Checklst */
  146. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  147. using namespace Checklst;
  148. #endif
  149. #pragma option pop    // -w-
  150.  
  151. #pragma delphiheader end.
  152. //-- end unit ----------------------------------------------------------------
  153. #endif    // CheckLst
  154.