From 78b42debffec4666c8481f90a679e228925cb445 Mon Sep 17 00:00:00 2001
From: zeljan1
-Click calls the inherited method prior to exit. The inherited method (in -TControl) signals either the OnClick event handler or the OnExecute handler -in the Action. OnClick is used when Action has not been assigned, or when -OnClick contains a handler routine that differs from the one assigned to the -OnExecute handler in the Action. -
--Click can be called in two different usage scenarios. If standard click -events have been enabled in ControlStyle, it is called when the left mouse -button is released. It can also be called from a private LM_CLICKED message -handler in the control when standard click events are not enabled in -ControlStyle. This avoids a duplicate click notification when csClickEvents -is enabled in ControlStyle and Click is handled when the WMLButtonUp method -is executed. +Click is called when the LM_CLICKED message is handled for the control. It +occurs when click events are not enabled in ControlStyle and +ControlState.
Click is an overridden method in TCustomCheckBox. It -performs actions needed when the value in the Checked or State property is -changed for the control, whether by mouse click or setting the value in -program code. -
--TCustomCheckBox re-implements the method from the TButtonControl ancestor to -ignore the mouse click event. It has an empty implementation, and does not call the inherited method. -
--In TCustomCheckBox, the click action may be handled in two different ways. -The action may be performed (in TControl) when the left mouse button is -released and standard click events are enabled in ControlStyle. The click -action may be performed in DoClickOnChange (by calling the inherited Click -method) when the value in State is changed and ClicksDisabled is False. -
--This avoids a duplicate click notification when csClickEvents is enabled in -ControlStyle and Click is handled when the WMLButtonUp method is executed, or -when the click is triggered by an associated Action. +ignores mouse up event notifications, and does not call the inherited method. +The click action is performed either in the DoClickOnChange method when the +ClicksDisabled property is False, or when the LM_CLICKED message is +handled for the control and click events are not enabled in ControlStyle and +ControlState.