In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

tEditBtn like tSearchComboBox

Xailer English public forum
Responder
Maarten Roos
Mensajes: 126
Registrado: Lun Mar 29, 2010 10:24 am

tEditBtn like tSearchComboBox

Mensaje 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
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

tEditBtn like tSearchComboBox

Mensaje 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
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
jlalin
Mensajes: 926
Registrado: Sab Dic 25, 2010 11:10 pm

tEditBtn like tSearchComboBox

Mensaje 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
--
Responder