Tutorial en vdeo: TextField con autocompletado

Hola!

He publicado un nuevo tutorial en vdeo. En este caso se trata de un ejercicio en el que veremos como podemos crear una subclase a partir de un TextField para obtener la capacidad de autocompletado, con sugerencia de palabras a medida que vayamos escribiendo. Dicha capacidad se obtiene a partir de un diccionario cuya virtud es que puede ser cualquier objeto que sea conforme a la interfaz de clase definida (tambin se explica en el tutorial).

En concreto, los conceptos tratados en el tutorial son los siguientes:

OOP en accin
Creacin de una subclase
Definicin de una interfaz de clase
Uso de tipos conformes a una interfaz de clase
Creacin de clases que adoptan una interfaz de clase
Creacin de evento consumido en la subclase (de modo que est disponible tambin para las instancias) y cmo llamar a dicho evento desde el consumido por nuestra subclase

Espero que os guste y vuestros comentarios!

Javier Rodrguez
Evangelista Xojo en Espaol
Autor del libro “Programacin Multiplataforma Xojo

Great Tutorial, also for non-spanish talking people :wink: Could you please post your Sample-Source? Would be great. Greetings

Gracias Javier.

Excelente tutorial.

Puedes postear el cdigo?

Saludos.
Mauricio

Martin, Mauricio

Happy to share the code! // ¡Encantado de compartir el código!

You can download the example project used in this tutorial from // Puedes descargar el proyecto de ejemplo utilizado para este tutorial desde:

Here/Aquí

Javier Rodríguez
Evangelista Xojo en Español
Autor del libro "Programación Multiplataforma Xojo "

Hola Javier

Mil Gracias por compartir.

Mauricio

Javier excelente aporte! gracias

Para completar el tutorial, acabo de publicar el texto que explica ms en detalle el “por qu” de las cosas y que tambin ayuda a entender mejor la estructura. Podis encontrarlo aqu.

Confo en que lo encontris til.

Javier Rodrguez
Evangelista Xojo en Espaol
Autor del libro “Programacin multiplataforma Xojo

Thanks Javier Menéndez!

How to perform a case-sensitive Autocomplete? Because if i added “Test” and try to type “triangle” the Textfield automatically change the small letter of “t” to “T”.

Hi Martin,

You just need to change the following line in the last block of code inside the KeyDown event handler (TextFieldAutocomplete):

me.Text = tempText + matchingText.Right(matchingText.len-tempText.len)

Javier

Two tips:

add Spanish subtitles for the hearing impaired
add English subtitles for non-spanish speakers -> you can reach a much larger audience with little extra effort

I guess it will take a lot of time and resources. Ideally, it would be perfect for us, to enjoy every evangelist tutorial or screencast translated ( To English ), but I guess it would be increase cost a lot.

Good tip though :slight_smile:

[quote=224181:@Javier Menendez ]You just need to change the following line in the last block of code inside the KeyDown event handler (TextFieldAutocomplete):

me.Text = tempText + matchingText.Right(matchingText.len-tempText.len)

Works fine :slight_smile: Thank you

Hi

Videos in English with subtitles in Spanish for non inglish speaker, a great help for Spanish speakers

regards

[quote=224337:@Mauricio Pulla]Hi

Videos in English with subtitles in Spanish for non inglish speaker, a great help for Spanish speakers

regards[/quote]
Yup. Spanish, German, French etc subtitles for all of Pauls webinars.

Markus, Amando: I’ll try to do that… but I have to say that my English is not as good as my Spanish! :smiley:

Javier

I would suggest that all the evangelists form a group and coordinate their efforts, eg one makes a webinar, the others make subtitles or add an audio track. Same for tutorials.