0

I've created a new VCL application and placed a TEdit control on the form.

At runtime, I could use Ctrl+A keyboard shortcut to select all the text of the TEdit.

As soon as I switched the "Enable runtime themes" option off from the Project Options, I've noticed that the Ctrl+A keyboard shortcut stopped working.

enable runtime themes

Why does this happen?

Fabrizio
  • 7,603
  • 6
  • 44
  • 104
  • 2
    Any application that will run on XP and newer Windows should have runtime themes enabled. Do you really need to support pre-XP Windows? – Dalija Prasnikar Feb 19 '19 at 16:03
  • @DalijaPrasnikar: No, I was just "playing" with project options and I have been surprised about that – Fabrizio Feb 19 '19 at 16:07
  • 1
    Related: [win32 select all on edit ctrl (textbox)](https://stackoverflow.com/questions/291792/). It is geared towards MFC, but would apply to Delphi, too. – Remy Lebeau Feb 19 '19 at 16:44
  • CTRL+A doesn't work at all in a `TMemo` control, even with runtime themes enabled. Related: https://stackoverflow.com/questions/8466747/automatically-allowing-ctrla-to-select-all-in-a-tmemo Sometimes you just have to write more code than you anticipated. – Jerry Dodge Feb 19 '19 at 17:46
  • 1
    Presumably that shortcut is only handled by comctl32 v6 and up versions of the edit control – David Heffernan Feb 20 '19 at 06:25

0 Answers0