Hi all
Its truly odd.
I mean it works perfectly every time, and just at some point it stops working.
Yes there are a few Tedits and then once the button is pressed the info goes into a simple DBF file linked to a Gridview.
Sometimes nothing happens and at some odd, unexplainable reason during a bunch of capturing it randomly happens. The space bar still functions ion the TEdit though, but once that Bitbutton gets focus, it ignores it completely.
I will go with the Keypreview suggestion and see if I can make that work.
-Peter
Do note, that in that case, the space-bar will not insert a BLANK while in a TEdit.
Except if you write corresponding logic for that
Aircode
//In TForm.KeyDown/Press/Up
IfPressedKeyIsSpaceBar And TEditHasFocus Then
ProcessSpaceBarInTedit
Else
BitBtn.Click;
If you have multiple TEdits you have to consider all of them.
Probably best with a Bitmask.
As long as whichever TEdit has the Focus do not call the BitBtn-OnClick
But this is all only as a workaround.
I'd really research what is going on there, because i agree: it sounds really weird