Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 377481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:42:03+00:00 2026-05-12T14:42:03+00:00

I start with a new Delphi VCL application, add Menus to the uses clause,

  • 0

I start with a new Delphi VCL application, add Menus to the uses clause, drop a label on the form, and assign the form’s OnShortCut event:

procedure TForm1.FormShortCut(var Msg: TWMKey; var Handled: Boolean);
begin
  Label1.Caption := ShortCutToText(ShortCut(Msg.CharCode, KeyDataToShiftState(Msg.KeyData)));
end;

On XP, this works correctly for all shortcut key combinations that I’ve tried, including Shift+Ctrl+0. On Vista and Windows 7, the test application displays Shift+Ctrl+1 through Shift+Ctrl+9, but not Shift+Ctrl+0. Other combinations like Shift+0, Ctrl+0, and even Shift+Ctrl+Alt+0 are displayed fine.

Running the application under the debugger, I find that the OnShortCut event is never fired with Msg.CharCode = Ord(‘0’) if both the Shift and Ctrl keys are held down while the 0 key is pressed.

The Delphi IDE has the same problem under Vista. Ctrl+Shift+1 sets bookmark 1, but Ctrl+Shift+0 does not set bookmark 0, which it should.

I’ve tested this with Delphi 2007 and 2010 on virgin installs of Windows Vista and 7 in VMware, so there’s no 3rd party software trapping the keys. I haven’t tried any other development tools to determine if the problem is with Delphi or with Vista itself.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T14:42:04+00:00Added an answer on May 12, 2026 at 2:42 pm

    Shift+Ctrl+0 is preassigned in Vista to the input method editor (IME) :

    http://support.microsoft.com/kb/967893

    This will solve your problem but will impact users of IMEs (mostly asian versions), so you should consider not using this shortcut.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am pretty new to delphi , and would like to start with something
HI! I'm trying to host a delphi 7 vcl application in a .Net wpf
Delphi 2009 uses build configurations . When you create a new project you have
I will start new PDA project on the windows mobile and compact framework 2.0
Is it a good idea to start new test framework using Selenium web driver
I know that we can start new activity with the steps as follows :
All M-x egg- commands work ok M-x egg-start-new-branch start new branch with name: xxx
The following code causes a NullReferenceException tStartParameter = String.Format(tStartParameter, tTo, tSubject) tProcess = Process.Start(New
I want to start a new thread using a C function, not an objective-C
I have to start a new project where user authentication/management will be required. A

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.