| Subject |
Re: Grid search |
| From |
Robbie Nott <robnott@mweb.co.za> |
| Date |
Sun, 27 Sep 2020 11:37:32 +0200 |
| Newsgroups |
dbase.getting-started |
On 9/26/2020 2:59 PM, Mervyn Bick wrote:
> On 2020/09/25 15:37, Akshat Kapoor wrote:
>> Good Evening Ronnie,
>> Placing a entryfield near the grid and then searching is damn easier
>> than grid having focus and searching.
>> Grid doesnot have a onKey event.
>
> I agree with you, using a separate entryfield for the search string, as
> with seekerSQL, makes sense. On the other hand if one REALLY wants a
> pseudo onKey event for a grid one can emulate one using a keyboard hook.
>
> Very few programmers seem to have embraced the CALLBACK command which is
> a pity as it can help solve many problems. The attached example is
> meant more as a contribution to your "old geezers" collection rather
> than to solve Robbie's problem.
>
> In the example a keyboard hook is used to build a simulated onKey event
> handler but the same principle can be used to extend the normal onKey
> event which doesn't catch ALL keystrokes.
>
> Mervyn.
>
>
>
>
Thanks Mervyn
Wax on - wax off....
Learn something new every day.
:-)
|
|