Is it possible to disable focus for a control (TButton especially)?
I have already set Tabstop := False for all these buttons,
and it works in the sense that they are passed over when
the Tab-key is pressed.
But when I use the arrow-keys, it seems these buttons still
receive focus, and the button faces are annoyingly focus-
highlighted one after the other as I keep hitting an arrow key.
I am using the arrows for specific things in the program and
have them intercepted by the main form. This is working as
I want, but it's unrelated to the buttons on the form, and
I don't want to see them flickering as I press the arrows.
There is a TabOrder property that holds an Integer value.
I was trying to take the buttons out of the TabOrder
sequence entirely by setting this to an empty string
but the IDE won't allow it. I might be missing something
vary basic here (?).
Note: There is no problem with the functionality of the
buttons as such. I am intercepting the enter-key as well
and a button press is never generated from the keyboard.
It's just the annnoying highlighting I need to get rid of.
How can I prevent it?
PS. In case it matters, I am using Lazarus 0.9.30.4/32bit under Win7-64.