Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Box and Incremental Searching
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00176072
Message ID:
00176112
Views:
23
Steve,

If the keystrokes are more than _DBLCLICK seconds apart FoxPro starts a new incremental seek, which is pretty handy, but the default _DBLCLICK isn't long enough for most folks.

Add two custom properties to your lowest level cbo subclass. nOldDBLClick and nDBLClick. Set nDBLClick to something like 0.5 or some other value that feels comfortable to your clients. In the GotFocus:
with this
   .nOldDBLClick = _DBLCLICK
   _DBLCLICK = this.nDBLClick
endwith

In the LoastFocus:

_DBLCLICK = this.nOldDBLClick
By having the property you can easily adjust the sensitivity of the cbo.

>Looking at the help file for Combo Boxes tells you that a combo box has the ability to do an incremental search. I can not get it to do more than a first letter search on items within the combo box. For instance, if there are 3 items that start with s but differ after the s, it will not look at anything past the s. I have to hit s multiple times for it to jump to the next item. The help file says that it will do a search such as s - t - e and find the first item starting with ste but this does not seem to work for me. Does anyone have any suggestions or confirmations on this?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform