ALT + ANY_KEY works wrong.(TLabel.FocusControl)
Original Reporter info from Mantis: SunyD @soner-a
-
Reporter name: Soner
Original Reporter info from Mantis: SunyD @soner-a
- Reporter name: Soner
Description:
You can connect TLabel to any control via TLabel.Caption and TLabel.FocusControl.
Normally TLabel.FocusControl gets focused only when you press the keys [Alt] and the underlined key from TLabel.Caption.
This works wrong this happens only when actually focused control is TEdit, TMEmo, TLIstBox or some other. (I don't tried all).
In somecontrols like TDBGrid, TStringGrid, TDAteTime and some others, TLabel.FocusControl gets focus without pressing [ALT] key.
Steps to reproduce:
- Download example project.
- Select stringgrid or tdatetime
- Press a key without [alt]
- top left edit gets focused.
this is wrong. it should only focused with [alt]+[a] key.