Subject Re: [IBO] Press ESC key in a grid
Author Lucas Franzen
Wow Jason,

I knew that you're fast.
But this time (according to the mail-timestamps) you answered before I
even asked :-)

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



You're right - it's the TCustomGrid - it doesn't swallow the key, but
the KeyDown-message itself when pressing F2.





> > 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.

I haven't seen this so far and was wondering about the "*".
[ gnF2Edits, gnF2Posts ] are enumarations of TIB_Grid_NavOptionType,
FNavigateOptions is a set of TIB_Grid_NavOptionType.
So what does the "*" do?

(Forgive my ignorance, it's just a part of Delphi I've never used so far
- but you're never too old to learn).

Luc.