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 >
Wrap
C/C++ Source or Header
|
2000-02-01
|
6KB
|
161 lines
// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved
// (DO NOT EDIT: machine generated header) 'CheckLst.pas' rev: 5.00
#ifndef CheckLstHPP
#define CheckLstHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp> // Pascal unit
#include <Forms.hpp> // Pascal unit
#include <StdCtrls.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <SysUtils.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <SysInit.hpp> // Pascal unit
#include <System.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Checklst
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TCheckListBox;
class PASCALIMPLEMENTATION TCheckListBox : public Stdctrls::TCustomListBox
{
typedef Stdctrls::TCustomListBox inherited;
private:
bool FAllowGrayed;
bool FFlat;
int FStandardItemHeight;
Classes::TNotifyEvent FOnClickCheck;
Classes::TList* FSaveStates;
void __fastcall ResetItemHeight(void);
void __fastcall DrawCheck(const Windows::TRect &R, Stdctrls::TCheckBoxState AState, bool AEnabled);
void __fastcall SetChecked(int Index, bool Checked);
bool __fastcall GetChecked(int Index);
void __fastcall SetState(int Index, Stdctrls::TCheckBoxState AState);
Stdctrls::TCheckBoxState __fastcall GetState(int Index);
void __fastcall ToggleClickCheck(int Index);
void __fastcall InvalidateCheck(int Index);
System::TObject* __fastcall CreateWrapper(int Index);
System::TObject* __fastcall ExtractWrapper(int Index);
System::TObject* __fastcall GetWrapper(int Index);
bool __fastcall HaveWrapper(int Index);
void __fastcall SetFlat(bool Value);
HIDESBASE MESSAGE void __fastcall CNDrawItem(Messages::TWMDrawItem &Message);
HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMDestroy(Messages::TWMNoParams &Msg);
bool __fastcall GetItemEnabled(int Index);
void __fastcall SetItemEnabled(int Index, const bool Value);
protected:
virtual void __fastcall DrawItem(int Index, const Windows::TRect &Rect, Windows::TOwnerDrawState State
);
DYNAMIC int __fastcall InternalGetItemData(int Index);
DYNAMIC void __fastcall InternalSetItemData(int Index, int AData);
DYNAMIC void __fastcall SetItemData(int Index, int AData);
DYNAMIC int __fastcall GetItemData(int Index);
DYNAMIC void __fastcall KeyPress(char &Key);
DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X,
int Y);
DYNAMIC void __fastcall ResetContent(void);
DYNAMIC void __fastcall DeleteString(int Index);
DYNAMIC void __fastcall ClickCheck(void);
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
virtual void __fastcall DestroyWnd(void);
int __fastcall GetCheckWidth(void);
public:
__fastcall virtual TCheckListBox(Classes::TComponent* AOwner);
__fastcall virtual ~TCheckListBox(void);
__property bool Checked[int Index] = {read=GetChecked, write=SetChecked};
__property bool ItemEnabled[int Index] = {read=GetItemEnabled, write=SetItemEnabled};
__property Stdctrls::TCheckBoxState State[int Index] = {read=GetState, write=SetState};
__published:
__property Classes::TNotifyEvent OnClickCheck = {read=FOnClickCheck, write=FOnClickCheck};
__property Align ;
__property bool AllowGrayed = {read=FAllowGrayed, write=FAllowGrayed, default=0};
__property Anchors ;
__property BiDiMode ;
__property BorderStyle ;
__property Color ;
__property Columns ;
__property Constraints ;
__property Ctl3D ;
__property DragCursor ;
__property DragKind ;
__property DragMode ;
__property Enabled ;
__property bool Flat = {read=FFlat, write=SetFlat, default=1};
__property Font ;
__property ImeMode ;
__property ImeName ;
__property IntegralHeight ;
__property ItemHeight ;
__property Items ;
__property ParentBiDiMode ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property Sorted ;
__property Style ;
__property TabOrder ;
__property TabStop ;
__property TabWidth ;
__property Visible ;
__property OnClick ;
__property OnContextPopup ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnDrawItem ;
__property OnEndDock ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMeasureItem ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDock ;
__property OnStartDrag ;
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TCheckListBox(HWND ParentWindow) : Stdctrls::TCustomListBox(
ParentWindow) { }
#pragma option pop
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Checklst */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Checklst;
#endif
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // CheckLst