[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'ExtCtrls' (#lcl)

TCustomPanel.ShowAccelChar

Controls the display of accelerator or hot keys in the Caption for the panel.

Declaration

Source position: extctrls.pp line 1115

protected property TCustomPanel.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.

Version info

Added in LCL version 3.0.

See also

TCustomPanel.Paint

  

Paints the panel including the bevels and caption defined for the control.

TControl.Caption

  

The text displayed for the control.


Version 3.2 Generated 2024-02-25 Home