I came accross this post in Experts Exchange by BTecho while searching for application wide hotkeys, this is for CTRL + b for anything else change the MOD_CONTROL, and ord('c') to whatever you want:
//In the main form's OnCreate event
//assign the hotkey handler
If not RegisterHotkey
(Handle...
In the line:
lstbx is a listbox.
---
if lstbx1.ItemIndex + 1 > lstbx1.Count and lstbx1.Count > 0 then
---
I get "incompatible types" error.
So now I would either have to use an object property with a constant value of 0, or waste memory by creating variables that hold the needed...
I have a MDI form with multiple sub forms.
When ever the MDI form has focus and an arrow key is pressed, I want procedure x to be called. Does something like an application wide KeyDown event exist?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.