ok try this :

put a Tedit component on your form and resize it to 10x10

clear the text

switch off ctl3d for the edit box

Set the borderstyle = bsNone

set the color to the background color of your form (makes it invisible)

then in the onclick event of each button, do :

Edit1.setfocus;


make sure you switch off tabstop for all buttons and the editbox to stop the buttons getting focus accidentally.

I'm not sure if the editbox will prevent the dxinput from recieving messages but I shouldn't think so.

The only other way I know is to hook the windows message, but that way is a bit compicated.