Hi there,
Yes indeed, i did play around with that last night, and got it to work
with the Tedit and a Tlistbox
so problem solved :)
thanks for your response though
Perry
_____
From: [email protected] [mailto:[email protected]] On Behalf
Of Charlie Chambers
Sent: Tuesday, June 09, 2009 6:59 AM
To: [email protected]
Subject: Re: [delphi-en] Combobox question
Hi Perry,
If i understand correctly you wish to type in some phrase and filter
possible results from the input.
I'd suggest using an TEdit and TListBox in place of the TComboBox.
Cheers,
Charlie
----- Original Message -----
From: Perry Kappetein
To: delphi...@yahoogrou <mailto:delphi-en%40yahoogroups.com> ps.com
Sent: Monday, June 08, 2009 7:55 PM
Subject: [delphi-en] Combobox question
Hi All,
Is it possible to do this?
i have a combobox filles with a bunch of items in it.
ie.
001 - my name
002 - my job
003 - my name is
004 - I like my job
what i want to do is, type in the combobox, and only show the items that
contains what i am typing
so when i type "job"
it only show 002 and 004
is this possible?
i tried this, but that ain't working
procedure Tfrmmanager.MyboxChange(Sender: TObject);
var
x : integer;
begin
for x := 0 to mybox.Items.Count - 1 do
begin
if pos(Lowercase(mybox.text), LowerCase(mybox.Items.Strings[x])) > 0 then
begin
mybox.ItemIndex := x;
end;
end;
end;
thanks so much
Perry
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]