From 05a08632cdb8bd970d0e34ac176d2ef05acfa77d Mon Sep 17 00:00:00 2001 From: dsiders Date: Fri, 28 Oct 2022 01:49:43 +0100 Subject: [PATCH] Docs: LCL/extctrls. Adds TCustomPanel.ShowAccelChar topics for changes in eff48575. --- docs/xml/lcl/extctrls.xml | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/docs/xml/lcl/extctrls.xml b/docs/xml/lcl/extctrls.xml index 755ef11e29..62bdc7b19e 100644 --- a/docs/xml/lcl/extctrls.xml +++ b/docs/xml/lcl/extctrls.xml @@ -6225,6 +6225,7 @@ the panel. + @@ -6322,6 +6323,17 @@ draw using both the BevelInner and BevelOuter styles. New value for the property. + + +Sets the value for the ShowAccelChar property. + + + + +New value for the ShowAccelChar property. + + + Sets the value for the VerticalAlignment property. @@ -6525,6 +6537,43 @@ change message is handled for the control. + + +Controls the display of accelerator or hot keys in the Caption for the panel. + + +

+ShowAccelChar is a Boolean property which indicates +whether accelerator keys in the Caption property are drawn when the panel is +displayed. The default value for the property is False, and causes an +Ampersand character (&) in Caption to be rendered using its character +value instead of as an accelerator. +

+

+When set to True, an Ampersand character indicates that the following +character is an accelerator or hot key. The Ampersand character is removed +from the rendered value and an underline is drawn beneath the accelerator +key. In this case, double Ampersand characters (&&) can be used to +renderer a single Ampersand on the panel. +

+

+ShowAccelChar allows Caption rendering to behave like the panel +implementation in the Delphi VCL. +

+

+ShowAccelChar is used in the Paint method, and controls the ShowPrefix value +in the text style used to render the Caption on the control. +

+
+ + +TControl.Caption + + +Added in LCL version 2.4. + +
+ Vertical alignment for the caption text displayed on the panel.