TCustomPanel.ShowAccelChar property
Controls the display of accelerator or hot keys in the Caption for the panel.
Declaration
property ShowAccelChar: Boolean read FShowAccelChar write SetShowAccelChar default False;Description
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.
Added in LCL version 3.0.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
