Registriert seit: 19. Feb 2012
Ort: Czech Republic, Prag
126 Beiträge
Delphi 10.1 Berlin Architect
|
Android - disable hardware button
17. Sep 2017, 09:58
Hello,
how to deactivate all android device hardware buttons when I run the application.
Eg: Back, Home, Recent apps, Volume Up, Volume Down, Power button
Thank you for your answers.
procedure TfrmMain.FormKeyUp(Sender: TObject; var Key: Word; var KeyChar: Char;
Shift: TShiftState);
begin
if Key = sgiUpRightLong then
begin
Key := 0;
end;
if Key = sgiUpLeftLong then
begin
Key := 0;
end;
if Key = vkHardwareBack then
begin
Key := 0;
end;
if Key = ????? then
begin
....
end;
end;
Daniel
Geändert von danten (17. Sep 2017 um 12:36 Uhr)
|