I have implemented a CustomNSToolbarMBS based on the example 'Toolbar
buttons.rbp'
I use NSSearchFieldMBS (in your example subclassed as NSToolbarSearchField)
to do a search against a database.
In the event handlers of that class I find only an action event, which fires
on each keystroke. But I want to search the database only after Return or
Enter key were pressed.
So I thought I could put some code like this into the action event:
If Keyboard.AsyncKeyDown(&h4C) OR _ 'Enter
Keyboard.AsyncKeyDown(&h24) Then 'Return
DoSearch
End If
Now the problem I encounter is, that the key is not consumed, and when in
the DoSearch method I switch to a listbox to display a resultset, then only
the Return or Enter key gets executed (which produces some undesired
result).
How can I 'consume' that Return/Enter key before calling DoSearch? Or is
there another approach?
Oliver
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info