Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Incremental search in combo boxes
Message
 
 
To
06/02/2001 15:53:47
Roy Macfarland
Cheboygan County Gis Division
Cheboygan, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00473156
Message ID:
00473161
Views:
23
>Trying to find out why the incremental search behavior of a combo box takes each keystroke as a new input. How do you change it? And where?

I'm not sure what you mean but here's a shot.

In order to make the incremental search use multiple keystrokes in one search, those keystrokes must occur within the time period specified by the _DblClick system memory variable. This defaults to .5 seconds so you have to type fast. One technique is to have a subclass of the Combo with a property to hold the _DblCLick value. Store off the value in the GotFocus of the control and set it to something longer (e.g. 1 second). In the LostFocus, reset it to its orginal setting.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform