THKKey no longer works in Delphi XE

I upgraded an old project from Delphi 7 to Delphi XE. The project has (among other things) some THotKey control. In Delphi 7, THotKey controls work fine. But in Delphi XE they are disabled. This means that they do not show anything inside, even if a shortcut is assigned to them (Alt + A), and I can not edit them.

Does anyone else have this problem?


Update:
I removed ALL controls and all code from this project. Now I have ONLY the main form and the only THotKey control. Basically, after deleting all the controls, my project looks like a newly created project without a single line of code. But THTKey still does not work under Delphi XE and continues to work under D7.

+7
source share
1 answer

Cause Detected (Delphi Error)

I compared my project with a newly created project. I saw that the old form had the โ€œdouble bufferingโ€ option when it was not in the new project, so I manually disabled this option in the old form. Guess what? THTKey works !!!!!!! Every time I turn on "double buffering", THTKey goes monkey.

Confirmed
Yes (by Andreas Reybrand)

Solution (partial):
I saw that this is not the main form of the DoubleBuffered property that calls this, but rather THotKey. Therefore, it is enough to disable this property for THotKey, and not for the entire form. I think I can get away with this.
:)

+9
source

All Articles