Forum > Beginners
[SOLVED] BitBtn Oddity
Petrus Vorster:
Hi All
I have app that requires a lot of manual input and a Bitbutton which then process the saving of the info.
It works great and you just tap the space bar when you are on speed instead of letting go of the keyboard to go fetch the mouse.
Its very repetitive, but at some point, around 20 entries, the space bar simply stops working as a trigger for the button but the mouse still works.
This is on Windows 10.
I have encountered this a number of times now.
Anyone has any ideas why this is happening?
-Peter
Zvoni:
Has the button lost focus?
Petrus Vorster:
Hi
No, its the weird part.
I follow the sequence of capturing and the clear blue focus rectangle is around it.
Its usually after around 20 - 25 times when it starts occurring.
From that point onward the space bar will not work on that button until i close the application and start it again.
-Peter
Zvoni:
sounds like keyboard-buffer
you said, there is "input" to be made.
In what? TEdit's? Remember, that TEdit's have precedence on catching Keyboard-Input
I find it weird, that it's the Space-Bar which should be the Default-Trigger for a Button (usually it's the Return/Enter-Key)
Have you tried setting KeyPreview of the Form to True, and in KeyDown/Press/Up of the Form itself to look for the Space-bar?
If SpaceBarWasPressed then Call OnClick of BitBtn
Petrus Vorster:
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
Navigation
[0] Message Index
[#] Next page