Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug in Combobox?
Message
From
16/06/1998 10:12:41
 
 
To
15/06/1998 18:51:37
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00108195
Message ID:
00108648
Views:
104
>The error is that say the combo box has items listed A-Z, and the you make the current item displayed = "K". Then if you have the combobox dropped down, it will show (for example) K-P, again, "K" is the current item. If the mouse is within the combo drop-down area, and you type "F", to go to "F", the combobox closes and stays on "K".
>
>Don,
>
>My previous reply did not give you much help, and this one may not either, but I do not feel that telling you that the behavior your observe is normal behavior for a combobox helps much when what you appear to want is a workaround.
>
>Frankly, there probably is no workaround for the combobox. It is going to close when you type a key. You may have to go to a grid or listbox to get the effect you want.
>
>With the listbox you would initially display it with a height sufficient to display one row which would contain the selected item. When the box receives focus, it would expand to display n rows where n is the number of rows that will fit on your form. When it loses focus, you contract it back to one row again. Listbox support incremental search and will not "close" when you press a key to initiate the search. You will, however, have to play around with the list order to ensure that the selected item is the one that displays when the list box is contracted to one row.
>
>M$ also suggests using a combination of a textbox and grid to emmulate a combobox. There is a knowledge base article at www.microsoft.com on just that subject.
>
>I suspect what Robert was alluding to in his reply is that the VFP combobox has a lot of know problems, some of which have been acknowledged by M$ and some have not. You might want to look at the M$ knowledge base for articles on the combobox with special emphasis on its bugs.
>
>I am sorry I cannot be of more assistance.
>
>Regards,
---
For Don:
James is right. There are articles on the M$ knowledge base for the COMBO BOX.
If you look, you can find the source code in vfp50 for coding your own combo.
That may be your best solution. I have looked for the article number in my notes and can not find it. I am sure you can find it if you search the KB.
The combo box is a problem for all of us, please do not feel alone in this.
Remember, the combo box is program coded by another. If you code your own combo, please share it with us.
HTH
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Reply
Map
View

Click here to load this message in the networking platform