Recieving keypresses in a component that's not focused
Posted on 2004-10-15
Hi, I have created my own XP-style button, wich descends from TCustomControl. I've got it working almost perfectly, except for the Default-property. I'm not really sure how to implement it, because I need to recieve keypresses to my button even when it is not focused to accomplish this... Thinking about maybe using Parent.OnKeyDown (which would mean the Form's KeyDown-event), but it doesn't seem like the right way to go... Is there an easier/better way?