mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 19:59:14 +02:00
Docs: LCL/stdctrls. Fixes incorrect content in the TCustomCheckBox.VCL_OnClick_Emulation topic.
This commit is contained in:
parent
9e813a6a78
commit
1bf4baa6b4
@ -9955,8 +9955,7 @@ TButtonActionLink classes.
|
|||||||
The TCustomCheckBox descendant uses ClicksDisabled in its DoClickOnChange
|
The TCustomCheckBox descendant uses ClicksDisabled in its DoClickOnChange
|
||||||
method; when set to <b>False</b>, the Click method is called to signal both
|
method; when set to <b>False</b>, the Click method is called to signal both
|
||||||
the OnChange and OnClick handlers for the control. When set to <b>True</b>,
|
the OnChange and OnClick handlers for the control. When set to <b>True</b>,
|
||||||
only the OnChange event handler is signalled. This emulates the Delphi VCL
|
only the OnChange event handler is signalled.
|
||||||
OnClick behavior.
|
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
ClicksDisabled is also used to prevent calling Click when the Checked
|
ClicksDisabled is also used to prevent calling Click when the Checked
|
||||||
@ -11438,11 +11437,11 @@ causes the property to be updated. OnClick occurs only when the mouse or
|
|||||||
keyboard is used to interact with the control.
|
keyboard is used to interact with the control.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
In the Delphi VCL, these events (OnChange and OnClick) are treated as
|
In the Delphi VCL, the OnChange event does not exist. The OnClick handler is
|
||||||
interchangeable equivalents. In fact, if both are assigned then both are
|
signalled when the value in State is changed and when the control is clicked.
|
||||||
signalled. This class member ensures that the Delphi handling for OnClick is
|
This class member allows use of Delphi handling for OnClick when the
|
||||||
used when the application has not accounted for the difference between the
|
application has not accounted for the difference between the events and their
|
||||||
events and their usage in the LCL.
|
usage in the LCL.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
When set to <b>True</b>, the OnClick event is signalled each time the State
|
When set to <b>True</b>, the OnClick event is signalled each time the State
|
||||||
|
Loading…
Reference in New Issue
Block a user