TurboPack MustangpeakEasyListview is part of VirtualShellTools for the Listview but can be used for a TListview Replacement that is faster and more customizable.
I just noticed that when you place an ELV on a FRM and assign an ELV.KeyAction the ALT key isnt detected, Shift en CTRL works fine.
`procedure TForm1.EasyListview1KeyAction(Sender: TCustomEasyListview; var CharCode: Word; var Shift: TShiftState; var DoDefault: Boolean);
begin
if ssALT in Shift then ShowMessage ('ELV ssAlt') <-- Not detected
else
if ssCTRL in Shift then ShowMessage ('ELV ssCtrl')
else
if ssShift in Shift then ShowMessage ('ELV ssShift')
end;
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
{
if ssALT in Shift then ShowMessage ('FRM ssAlt') <-- Detected / KeyPreview=True
else
if ssCTRL in Shift then ShowMessage ('FRM ssCtrl')
else
if ssShift in Shift then ShowMessage ('FRM ssShift')
}
end;
`
Hi,
I just noticed that when you place an ELV on a FRM and assign an ELV.KeyAction the ALT key isnt detected, Shift en CTRL works fine.
`procedure TForm1.EasyListview1KeyAction(Sender: TCustomEasyListview; var CharCode: Word; var Shift: TShiftState; var DoDefault: Boolean); begin if ssALT in Shift then ShowMessage ('ELV ssAlt') <-- Not detected else if ssCTRL in Shift then ShowMessage ('ELV ssCtrl') else if ssShift in Shift then ShowMessage ('ELV ssShift') end;
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin { if ssALT in Shift then ShowMessage ('FRM ssAlt') <-- Detected / KeyPreview=True else if ssCTRL in Shift then ShowMessage ('FRM ssCtrl') else if ssShift in Shift then ShowMessage ('FRM ssShift') } end; `