Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Incremental search (and display) in a ComboBox.
Message
From
24/01/2001 04:58:31
 
 
To
24/01/2001 04:45:41
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00467783
Message ID:
00467787
Views:
10
Hi!

You can use SelectedBackColor and SelectedForeColor properties. Set selected back color the same as usual back color. Set selecte fore color to the color you want to use for typed text. Than track typed string and use combobox.slstart=1 and combobox.sellength = len(TypedString).

You can look also how others done this, in the files section you can find 2 or more interactive search comboboxes.

> I thought about something I think it could become very handy... A combobox that as the user is typing in, displays what the user has typed with a blue background, and displays any matching value with the usual colour.
>
> I tried to do some tests, but it's a bit more dificult than what it seemed...
> Shoud I use an array or a table for the source? If I use a table I could SET FILTER to what the user typed... but how to display what he wrote in blue and the rest normal?
>
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform