Class TPBCheckListBox (unit PBCheckLB) |
TCustomListBox
Constructors |
Functions |
Changed to use 3D drawing
draw the item
check the range of Index
free the bitmaps
Properties |
Events |
Variables |
Constructors |
constructor and destructor
Functions |
initialize the default values
Draw each item
Changed to use 3D drawing
check the range of Index
check the range of Index
Handle Test if the mouse click hit the checkboxes draw the item if we use bitmaps, the min height must be the height of the bitmap +2 pixels Set and Get functions for the properties check the range of Index check the range of Index check the range of Index Redraw the listbox if the font change Create an object associated with an item if it doesn't exist free the bitmaps Avoid flickering by redrawing only the change item Properties pusblish the TListBox properties new properties for the checkbox management new properties for the checkbox management Events pusblish the TListBox events Variables Private declarations } { for the state of every element Bitmaps for the checkbox Offset between the listbox border and the bitmap } { and between the bitmap and the text Mantain a list of created objects so they can be freed when component
is destroyed procedure MouseDown(Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
procedure SetBmpChecked(Value: TBitmap);
procedure SetBmpGrayed(Value: TBitmap);
procedure SetBmpUnchecked(Value: TBitmap);
procedure SetChecked(Index: Integer; const AChecked: Boolean);
procedure SetFixedSize(Value: Boolean);
procedure SetFlat(Value: Boolean);
procedure SetOffset(AnOffset: Integer);
procedure SetState(Index: Integer; const AState: TCheckBoxState);
procedure CMFontChanged(var Message: TMessage);
procedure CreateObject(Index: Integer);
procedure InvalidateCheck(Index:Integer);
property Align :
property AllowGrayed : Boolean
property BmpChecked : TBitmap
property BmpGrayed : TBitmap
property BmpUnchecked : TBitmap
property BorderStyle :
property Color :
property Columns :
property Ctl3D :
property DragCursor :
property DragMode :
property Enabled :
property ExtendedSelect :
property FixedSize : Boolean
property Flat : Boolean
property Font :
property IntegralHeight :
property ItemHeight :
property Items :
property MultiSelect :
property Offset : Integer
property ParentColor :
property ParentCtl3D :
property ParentFont :
property ParentShowHint :
property PopupMenu :
property ShowHint :
property Sorted :
property Style :
property TabOrder :
property TabWidth :
property Visible :
property Checked : Boolean
property State : TCheckBoxState
event OnClick :
event OnDblClick :
event OnDragDrop :
event OnDragOver :
event OnDrawItem :
event OnEndDrag :
event OnEnter :
event OnExit :
event OnKeyDown :
event OnKeyPress :
event OnKeyUp :
event OnMeasureItem :
event OnMouseDown :
event OnMouseMove :
event OnMouseUp :
event OnStartDrag :
FAllowGrayed : Boolean;
FBmpChecked : TBitmap;
FBmpGrayed : TBitmap;
FBmpUnchecked : TBitmap;
FFixedSize : Boolean;
FFlat : Boolean;
FOffset : Integer;
FStateList : TList;