Subject | Re: [IBO] TIB_LookupCombo and keystrokes |
---|---|
Author | russellbelding |
Post date | 2004-09-25T06:44:48Z |
--- In IBObjects@yahoogroups.com, Helen Borrie <helebor@t...> wrote:
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
Russell
> At 03:16 AM 25/09/2004 +0000, you wrote:example)
> >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 youhave e.g.
> 10 items in the lookup set (A, B, D, E, F, etc.) and, if letter Dis
> pressed, it is selected?Hello Helen
>
> 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
Russell