Class TCheckListBox (unit LBCheck) |
TCustomListBox
Constructors |
------------------------------------------------------------------------------} { PUBLIC , OVERRIDE } { Constructor for TCheckListBox
Functions |
------------------------------------------------------------------------------} { PUBLIC } { Checks all items in the list box if AChecked is True, unchecks them otherwise
------------------------------------------------------------------------------} { PUBLIC } { Sets all selected items to checked if AChecked is True, unchecked otherwise
------------------------------------------------------------------------------} { PUBLIC } { Toggles the state of the item at the given index
------------------------------------------------------------------------------} { PROTECTED , VIRTUAL } { Calls user's OnCheck event handler
------------------------------------------------------------------------------} { PROTECTED , OVERRIDE } { Clears the rectangle, draws the check box and draws the item text
------------------------------------------------------------------------------} { PROTECTED , OVERRIDE } { Calls inherited MouseDown ( which calls user's mouse down ) } { If the user has clicked inside a check box , toggle the checkbox and draw } { the focus rectangle.
------------------------------------------------------------------------------} { PRIVATE } { Sets the item at index to be checked if AChecked is True } { or unchecked if AChecked is False } { If the item was not already in the given state, it redraws the check box } { and generates either an OnCheck or OnUnCheck event
------------------------------------------------------------------------------} { PRIVATE } { Draws the check box for the item at Index in the given state
------------------------------------------------------------------------------} { PRIVATE } { Returns True if the item at Index is Checked, otherwise returns False
Properties |
Events |
Variables |
Constructors |
Overriden constructor and destructor
------------------------------------------------------------------------------} { PUBLIC , OVERRIDE } { Constructor for TCheckListBox
Functions |
Sets the Checked property to AChecked for all items in the list box
------------------------------------------------------------------------------} { PUBLIC } { Checks all items in the list box if AChecked is True, unchecks them otherwise
Sets the Checked property to AChecked for all selected items
------------------------------------------------------------------------------} { PUBLIC } { Sets all selected items to checked if AChecked is True, unchecked otherwise
------------------------------------------------------------------------------} { PUBLIC , OVERRIDE } { Constructor for TCheckListBox
Toggles the check of the given item
------------------------------------------------------------------------------} { PUBLIC } { Toggles the state of the item at the given index
Protected handlers for OnCheck and OnUncheck events
------------------------------------------------------------------------------} { PROTECTED , VIRTUAL } { Calls user's OnCheck event handler
Overriden owner draw method
------------------------------------------------------------------------------} { PROTECTED , OVERRIDE } { Clears the rectangle, draws the check box and draws the item text
Overriden mouse down event
------------------------------------------------------------------------------} { PROTECTED , OVERRIDE } { Calls inherited MouseDown ( which calls user's mouse down ) } { If the user has clicked inside a check box , toggle the checkbox and draw } { the focus rectangle.
------------------------------------------------------------------------------} { PROTECTED , VIRTUAL } { Calls user's OnUnChecked event handler
Write fucntion for Checked property , sets Checked[ Index ] := AChecked
------------------------------------------------------------------------------} { PRIVATE } { Sets the item at index to be checked if AChecked is True } { or unchecked if AChecked is False } { If the item was not already in the given state, it redraws the check box } { and generates either an OnCheck or OnUnCheck event
Draws the checkbox for the given item in the appropriate state
------------------------------------------------------------------------------} { PRIVATE } { Draws the check box for the item at Index in the given state
OnUnCheck event property } { Read function for Checked property
------------------------------------------------------------------------------} { PRIVATE } { Returns True if the item at Index is Checked, otherwise returns False
------------------------------------------------------------------------------
Properties |
Original properties
Properties not published } { Style : set to lbOwnerDrawFixed by the constructor } { OnDrawItem : used to draw check boxes } { Properties Added
Checked property. When True , the item is checked
Events |
Variables |
The standard Windows checkbox bitmaps
Me
OnCheck event property