Página 1 de 1

tEditBtn like tSearchComboBox

Publicado: Vie Mar 09, 2012 3:09 pm
por Maarten Roos
Dear all,
I am looking for the best way to get the tEdit(Btn) search like tSearchCombo does?

So when you type it already is showing the first match it found.
I need a little push in the right direction or a sample. I tried already with OnChar, OnKeyUp,OnChange events, but they were not working properly due to :nPos not working or me not getting the right value of :nPos.
Many thanks in advantage...
Maarten Roos

tEditBtn like tSearchComboBox

Publicado: Dom Mar 11, 2012 7:42 pm
por jfgimenez
Maarten,
> I am looking for the best way to get the tEdit(Btn) search
> like tSearchCombo does?
why not use a TSearchCombo then? ;-)
> So when you type it already is showing the first match it
> found.
>
> I need a little push in the right direction or a sample. I
> tried already with OnChar, OnKeyUp,OnChange events, but they
> were not working properly due to :nPos not working or me not
> getting the right value of :nPos.
Well, the full source code of TSearchCombobox is in
xailersamplescontrols. You may study it. However, you could put here
a sample of what you are doing in order to help you better.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info

tEditBtn like tSearchComboBox

Publicado: Lun Mar 12, 2012 1:48 pm
por jlalin
Maarten,
I wrote this code many time ago and it may need some fixes to work with
latest Xailer releases.
Saludos,
José Lalí­n
--