Subject Re: [IBO] Press ESC key in a grid
Author Jason Wharton
I think it might have something to do with what is done in the TCustomGrid
base class. Take a little time and see what it does in there.

Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "Lucas Franzen" <luc@...>
To: <IBObjects@yahoogroups.com>
Sent: Friday, August 24, 2001 3:58 PM
Subject: Re: [IBO] Press ESC key in a grid


>
>
> Jason Wharton schrieb:
> >
> > 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.
>
> Jason,
>
> 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)

What is it you are wanting to know here? Looks straight forward to me.