home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Internet 2000 May / MICD_2000_05.iso / CBuilder5 / INSTALL / DATA1.CAB / Program_Built_Files / Include / Vcl / checklst.hpp < prev    next >
C/C++ Source or Header  |  2000-02-01  |  6KB  |  161 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: 5.00
  6.  
  7. #ifndef CheckLstHPP
  8. #define CheckLstHPP
  9.  
  10. #pragma delphiheader begin
  11. #pragma option push -w-
  12. #pragma option push -Vx
  13. #include <Menus.hpp>    // Pascal unit
  14. #include <Forms.hpp>    // Pascal unit
  15. #include <StdCtrls.hpp>    // Pascal unit
  16. #include <Controls.hpp>    // Pascal unit
  17. #include <Graphics.hpp>    // Pascal unit
  18. #include <Classes.hpp>    // Pascal unit
  19. #include <SysUtils.hpp>    // Pascal unit
  20. #include <Messages.hpp>    // Pascal unit
  21. #include <Windows.hpp>    // Pascal unit
  22. #include <SysInit.hpp>    // Pascal unit
  23. #include <System.hpp>    // Pascal unit
  24.  
  25. //-- user supplied -----------------------------------------------------------
  26.  
  27. namespace Checklst
  28. {
  29. //-- type declarations -------------------------------------------------------
  30. class DELPHICLASS TCheckListBox;
  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, bool AEnabled);
  43.         
  44.     void __fastcall SetChecked(int Index, bool Checked);
  45.     bool __fastcall GetChecked(int Index);
  46.     void __fastcall SetState(int Index, Stdctrls::TCheckBoxState AState);
  47.     Stdctrls::TCheckBoxState __fastcall GetState(int Index);
  48.     void __fastcall ToggleClickCheck(int Index);
  49.     void __fastcall InvalidateCheck(int Index);
  50.     System::TObject* __fastcall CreateWrapper(int Index);
  51.     System::TObject* __fastcall ExtractWrapper(int Index);
  52.     System::TObject* __fastcall GetWrapper(int Index);
  53.     bool __fastcall HaveWrapper(int Index);
  54.     void __fastcall SetFlat(bool Value);
  55.     HIDESBASE MESSAGE void __fastcall CNDrawItem(Messages::TWMDrawItem &Message);
  56.     HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
  57.     HIDESBASE MESSAGE void __fastcall WMDestroy(Messages::TWMNoParams &Msg);
  58.     bool __fastcall GetItemEnabled(int Index);
  59.     void __fastcall SetItemEnabled(int Index, const bool Value);
  60.     
  61. protected:
  62.     virtual void __fastcall DrawItem(int Index, const Windows::TRect &Rect, Windows::TOwnerDrawState State
  63.         );
  64.     DYNAMIC int __fastcall InternalGetItemData(int Index);
  65.     DYNAMIC void __fastcall InternalSetItemData(int Index, int AData);
  66.     DYNAMIC void __fastcall SetItemData(int Index, int AData);
  67.     DYNAMIC int __fastcall GetItemData(int Index);
  68.     DYNAMIC void __fastcall KeyPress(char &Key);
  69.     DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, 
  70.         int Y);
  71.     DYNAMIC void __fastcall ResetContent(void);
  72.     DYNAMIC void __fastcall DeleteString(int Index);
  73.     DYNAMIC void __fastcall ClickCheck(void);
  74.     virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
  75.     virtual void __fastcall CreateWnd(void);
  76.     virtual void __fastcall DestroyWnd(void);
  77.     int __fastcall GetCheckWidth(void);
  78.     
  79. public:
  80.     __fastcall virtual TCheckListBox(Classes::TComponent* AOwner);
  81.     __fastcall virtual ~TCheckListBox(void);
  82.     __property bool Checked[int Index] = {read=GetChecked, write=SetChecked};
  83.     __property bool ItemEnabled[int Index] = {read=GetItemEnabled, write=SetItemEnabled};
  84.     __property Stdctrls::TCheckBoxState State[int Index] = {read=GetState, write=SetState};
  85.     
  86. __published:
  87.     __property Classes::TNotifyEvent OnClickCheck = {read=FOnClickCheck, write=FOnClickCheck};
  88.     __property Align ;
  89.     __property bool AllowGrayed = {read=FAllowGrayed, write=FAllowGrayed, default=0};
  90.     __property Anchors ;
  91.     __property BiDiMode ;
  92.     __property BorderStyle ;
  93.     __property Color ;
  94.     __property Columns ;
  95.     __property Constraints ;
  96.     __property Ctl3D ;
  97.     __property DragCursor ;
  98.     __property DragKind ;
  99.     __property DragMode ;
  100.     __property Enabled ;
  101.     __property bool Flat = {read=FFlat, write=SetFlat, default=1};
  102.     __property Font ;
  103.     __property ImeMode ;
  104.     __property ImeName ;
  105.     __property IntegralHeight ;
  106.     __property ItemHeight ;
  107.     __property Items ;
  108.     __property ParentBiDiMode ;
  109.     __property ParentColor ;
  110.     __property ParentCtl3D ;
  111.     __property ParentFont ;
  112.     __property ParentShowHint ;
  113.     __property PopupMenu ;
  114.     __property ShowHint ;
  115.     __property Sorted ;
  116.     __property Style ;
  117.     __property TabOrder ;
  118.     __property TabStop ;
  119.     __property TabWidth ;
  120.     __property Visible ;
  121.     __property OnClick ;
  122.     __property OnContextPopup ;
  123.     __property OnDblClick ;
  124.     __property OnDragDrop ;
  125.     __property OnDragOver ;
  126.     __property OnDrawItem ;
  127.     __property OnEndDock ;
  128.     __property OnEndDrag ;
  129.     __property OnEnter ;
  130.     __property OnExit ;
  131.     __property OnKeyDown ;
  132.     __property OnKeyPress ;
  133.     __property OnKeyUp ;
  134.     __property OnMeasureItem ;
  135.     __property OnMouseDown ;
  136.     __property OnMouseMove ;
  137.     __property OnMouseUp ;
  138.     __property OnStartDock ;
  139.     __property OnStartDrag ;
  140. public:
  141.     #pragma option push -w-inl
  142.     /* TWinControl.CreateParented */ inline __fastcall TCheckListBox(HWND ParentWindow) : Stdctrls::TCustomListBox(
  143.         ParentWindow) { }
  144.     #pragma option pop
  145.     
  146. };
  147.  
  148.  
  149. //-- var, const, procedure ---------------------------------------------------
  150.  
  151. }    /* namespace Checklst */
  152. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  153. using namespace Checklst;
  154. #endif
  155. #pragma option pop    // -w-
  156. #pragma option pop    // -Vx
  157.  
  158. #pragma delphiheader end.
  159. //-- end unit ----------------------------------------------------------------
  160. #endif    // CheckLst
  161.