Subject Re: IB_Grid and Incremental Search
Author Marco Menardi
--- In IBObjects@yahoogroups.com, "jaguarius2003" <jaguarius@c...> wrote:
> Hi, I am trying to use the incremental search feature on the IB_Grid
> component with no success. I already have a the ordering links set up
> on the dataset, and the incremental works fine with a sepearte
> TIB_IncSearch component. For some reason tho, I turn on find nearest,
> searchkeybykey and allow inc search in the grid and it doesn't work. I
> try typing into the grid nothing happens.
>
> Can somone walk through the steps that are required to make an IB_Grid
> allow incremental search please?

I had a lot of problems, as far as I remember, and when I had
something that worked it was not reliable, so I gave up!
In addition, there is a bug in the ib_grid, that is really annoying if
you (and let me know how) make it work in search mode: if it's "read
only", and you have some accelerators keys in the form (i.e. the &OK
caption in a button, or others), when you press the letter
corresponding to that accelerator, the corresponding event is fired!
(so if you press "o", it's like having typed ALT+O in another control).
This is a 2002 message I sent to Jason about that:
Ibo 4.2.I
Hi Jason,
If you have a IB_Grid that is read only, and you have some TBitBtn
with an accelerator key (i.e. &Close), if the grid has the focus and
you simply press that key *without ALT* (i.e. 'c'), the OnClick event
of the button is fired!!!
This is a problem since sometime the inexpert user start typing even
when the focus is in the grid and not, for instance, in a TIB_Edit or
something like this.

Let me know :)
regards
Marco Menardi