Subject Re: [IBO] TIB_LookupCombo and keystrokes
Author russellbelding
--- In, Helen Borrie <helebor@t...> wrote:
> At 03:16 AM 25/09/2004 +0000, you wrote:
> >Can I get a TIB_LookupCombo to select a choice when a keystroke is
> >pressed?
> Not sure what exactly you mean here, Russell. Do you mean (for
> select the current value by pressing Enter? Or do you mean you
have e.g.
> 10 items in the lookup set (A, B, D, E, F, etc.) and, if letter D
> pressed, it is selected?
> Helen

Hello Helen

I have several items Alpha,Beta,Gamma,... in a TIB_Query as source
for a TIB_LookupCombo and pressing the G key did not select Gamma.

So in the TIB_Query I ordered the dataset by the field holding Alpha,
Beta, Gamma and set the dataset's itemOrderingNo to that for this
ordering. Then Keystroke selection worked.

I find it helpful to have, in the TIB_LookupCombo,
SearchKeyByKey=True to give visual feedback on the selection.
Otherwise the selected text does not appear until the TIB_LookupCombo
is exited.

I also find it helpful, for this editing setting, to have
AutoDropDown=false so selecting using a keystroke does not cause the
TIB_LookupCombo to drop down.

Kind regards