Subject | Re: [IBO] Press ESC key in a grid |
---|---|
Author | Lucas Franzen |
Post date | 2001-08-24T22:58:52Z |
Jason Wharton schrieb:
I've been in there, too, since I've got some problem with VK_F2 in the
grid.
It's the only function-key that's resetted to 0 unconditionally.
In the procedure TIB_CustomGrid.KeyDown( var Key: Word; Shift:
TShiftState );
there is a line like:
VK_F2:
begin
Key := 0; <<<<<<<<<< Always resetted! <<<<<<<<<<<<<<<<
if [ gnF2Edits, gnF2Posts ] * FNavigateOptions <> [] then
....
which causes me some trouble since I'd like to handle function-keys
according to my own (user-definable) setup.
Is there anything that would cause problems not to reset the key?
Luc.
P.S.:
would anyone like to explain the following line:
if [ gnF2Edits, gnF2Posts ] * FNavigateOptions <> [] then ...
to me (just to increase my knowledge)
>Jason,
> I'm saying that you can go into IB_Grid.pas and see for yourself.
> That is the source code for the control you are talking about.
I've been in there, too, since I've got some problem with VK_F2 in the
grid.
It's the only function-key that's resetted to 0 unconditionally.
In the procedure TIB_CustomGrid.KeyDown( var Key: Word; Shift:
TShiftState );
there is a line like:
VK_F2:
begin
Key := 0; <<<<<<<<<< Always resetted! <<<<<<<<<<<<<<<<
if [ gnF2Edits, gnF2Posts ] * FNavigateOptions <> [] then
....
which causes me some trouble since I'd like to handle function-keys
according to my own (user-definable) setup.
Is there anything that would cause problems not to reset the key?
Luc.
P.S.:
would anyone like to explain the following line:
if [ gnF2Edits, gnF2Posts ] * FNavigateOptions <> [] then ...
to me (just to increase my knowledge)