Solved

How to disable Shift F10

Posted on 2000-03-08
3
1,031 Views
Last Modified: 2008-01-09
How can I capture Shift F10 and disable it.
0
Comment
Question by:moonrise
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Expert Comment

by:XAN
ID: 2597127
try use TApplicationEvents and somthing like this in OnMessage handler:
with Msg do
  if (Message = WM_SysKeyDown) and
    (wParam = 00000079) and
    (lParam = 00440001) then
  Handled := True;

0
 

Accepted Solution

by:
umitde earned 100 total points
ID: 2597252
try use TForm on KeyDown events;
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  if (ssShift in Shift) AND (Key = VK_F10) then Key := 0;

end;
0
 

Author Comment

by:moonrise
ID: 2597393
Thnk you both. Probably 2 working solutions but using FormKeyDown seems easier.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question