Docs: LCL/stdctrls. Updates TRadioButton.DialogChar topic for changes in 63f44cf8.

* LCL: Check TRadioButton when using keyboard accelerator ("&" in caption)
This commit is contained in:
dsiders 2024-08-21 21:52:08 +01:00
parent 14514dc97f
commit b67c2a2386

View File

@ -12238,7 +12238,9 @@ changed.
</element> </element>
<element name="TRadioButton.DialogChar"> <element name="TRadioButton.DialogChar">
<short>Implements support for an accelerator key in the control.</short> <short>
Implements support for an accelerator key in the control.
</short>
<descr> <descr>
<p> <p>
<var>DialogChar</var> is an overridden <var>Boolean</var> function in <var>DialogChar</var> is an overridden <var>Boolean</var> function in
@ -12248,10 +12250,13 @@ successfully toggled in the method.
</p> </p>
<p> <p>
<var>Message</var> is the TLMKey instance with the key code examined in the <var>Message</var> is the TLMKey instance with the key code examined in the
method. When the key code matches the accelerator key in <var>Caption</var>, method. If the key code matches the accelerator key in <var>Caption</var>,
the control is focused and the return value is set to <b>True</b>. If the the control is focused, its Checked state is enabled, and the return value is
control cannot be focused, or Message does not represent an accelerator key set to <b>True</b>.
code, the inherited method is called to get the return value. </p>
<p>
If the control cannot be focused, or Message does not represent the accelerator
for the control, the inherited method is called to get the return value.
</p> </p>
<p> <p>
This method is called even if the control is disabled or hidden. Provided for This method is called even if the control is disabled or hidden. Provided for
@ -12259,12 +12264,16 @@ Delphi VCL compatibility.
</p> </p>
</descr> </descr>
<seealso> <seealso>
<link id="TRadioButton.Caption"/>
<link id="TRadioButton.Checked"/>
<link id="TCustomCheckBox.DialogChar"/> <link id="TCustomCheckBox.DialogChar"/>
<link id="#lcl.forms.IsAccel">IsAccel</link>
<link id="#lcl.controls.TWinControl.Focused">TWinControl.Focused</link>
</seealso> </seealso>
</element> </element>
<element name="TRadioButton.DialogChar.Result"> <element name="TRadioButton.DialogChar.Result">
<short> <short>
<b>True</b> when the message is handled and the control is focused. <b>True</b> when the message is handled and the control is focused and checked.
</short> </short>
</element> </element>
<element name="TRadioButton.DialogChar.Message"> <element name="TRadioButton.DialogChar.Message">