You can disable the TMemo, this will take away focus, but looks ugly, and the user cannot click on it anymore.
this is what i am doing at the moment: when the TMemo is being used i enable it with
Memo1.Enabled:=true; Memo1.Visible:=true then when it is no longer required i do
Memo1.Enabled:=false; Memo1.Visible:=false. but there are also two
TPanel's that i have
permanently visible, and thus are slightly more problematic. as it stands, they are currently never gaining focus, but if something changes in future it would be nice to have a means to either a) ensure they can never gain focus, or, b) have a solution ready, such that if either gains focus it can be immediately (and transparently to the user) undone. at the moment i'd depending on double-ups
only happening
if the value of
Key is altered within the
OnKeyDown event handler. but what if that changes with a future version of GTK2?
btw: did i mention that
TPanel's display the same double-up behavior as
TMemo's?
cheers,
rob :-)