RichEdit5 and auto-texts
RichEdit5 and auto-texts
Hi Guys,
Do you know if is possible to do auto-texts with this class ?
Do you know if is possible to do auto-texts with this class ?
- Antonio Linares
- Site Admin
- Posts: 42268
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: RichEdit5 and auto-texts
Dear Vilian,
What do you mean with auto-text ?
What do you mean with auto-text ?
Re: RichEdit5 and auto-texts
Antonio,
While the user is typing a text I would like to check the words inside a list and in case I find it, I would like to replace the word found for another text. Is it possible?
While the user is typing a text I would like to check the words inside a list and in case I find it, I would like to replace the word found for another text. Is it possible?
Re: RichEdit5 and auto-texts
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Re: RichEdit5 and auto-texts
Dear Karinha,
Thank you, but I'm trying to do this with RICHEDIT 5, not with Word.
Thank you, but I'm trying to do this with RICHEDIT 5, not with Word.
Re: RichEdit5 and auto-texts
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Re: RichEdit5 and auto-texts
Sorry my friend, but I didn't understand how could it help me to do auto-texts with Richedit5 ?
Re: RichEdit5 and auto-texts
Vilian, if you have the text in Rich, just shoot it into the Word corrector. Or is it no use?
Vilian, si tienes el texto en Rich, simplemente dispáralo en el corrector de Word. ¿O no sirve de nada?
Regards, saludos.
Vilian, si tienes el texto en Rich, simplemente dispáralo en el corrector de Word. ¿O no sirve de nada?
Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Re: RichEdit5 and auto-texts
But the user doesn't have Word installed in your computer. Because this, I'm trying to do this trought Richedit5
Re: RichEdit5 and auto-texts
Dear Vilian
Please test this sample
https://bitbucket.org/fivetech/fivewin- ... strtf7.prg
I hope you have understood what you are saying
I have built an initial example that still has some details that do not work correctly: for the word to be replaced, a space must be pressed at the end and it does not take into account that you press ENTER / RETURN without first pressing the space key, but I want to make sure that I have understood your problem well and help you focus your development based on this example
You will also probably have to modify the Keydown method of the TRichEdt5 class by adding the following:
At the beginning of the example there is an array with the words to search for and the value to replace.
I look forward to your comments
Regards
Please test this sample
https://bitbucket.org/fivetech/fivewin- ... strtf7.prg
I hope you have understood what you are saying
I have built an initial example that still has some details that do not work correctly: for the word to be replaced, a space must be pressed at the end and it does not take into account that you press ENTER / RETURN without first pressing the space key, but I want to make sure that I have understood your problem well and help you focus your development based on this example
You will also probably have to modify the Keydown method of the TRichEdt5 class by adding the following:
Code: Select all | Expand
METHOD KeyDown( nKey, nFlags ) CLASS TRichEdit5
.../...
// Suggested by the user MaxP (Massimo): 11/22/2019, remove PostMsg
//::PostMsg( FM_CHANGE )
// Added by Cristobal Navarro
if !::lReadOnly
::PostMsg( FM_CHANGE )
endif
.../...
Return nil
I look forward to your comments
Regards
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Re: RichEdit5 and auto-texts
Dear Cristobal,
Thank you, your example does almost everything I needed. There is only a problem. I included in the array of words { "Action", "Ação" }, the first time this word is replaced, everything is fine. From the second ahead the word is staying like this:
Thank you, your example does almost everything I needed. There is only a problem. I included in the array of words { "Action", "Ação" }, the first time this word is replaced, everything is fine. From the second ahead the word is staying like this:
Do you know why ?Ação
Ação
Re: RichEdit5 and auto-texts
Dear Vilina, please attach your sample
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Re: RichEdit5 and auto-texts
Hi, Cristobal !
When I try to download your example, I get the following message
"Error when establishing a secure connection"
I'm also very interested in the topic of auto-text. About 5 years ago I tried to do something like this for TGet/TMultiGet, but it was slow
When I try to download your example, I get the following message
"Error when establishing a secure connection"
I'm also very interested in the topic of auto-text. About 5 years ago I tried to do something like this for TGet/TMultiGet, but it was slow
Re: RichEdit5 and auto-texts
I download it without problem,Natter wrote:Hi, Cristobal !
When I try to download your example, I get the following message
"Error when establishing a secure connection"
I'm also very interested in the topic of auto-text. About 5 years ago I tried to do something like this for TGet/TMultiGet, but it was slow
Try again
https://bitbucket.org/fivetech/fivewin- ... strtf7.prg
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
- Enrico Maria Giordano
- Posts: 8728
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: RichEdit5 and auto-texts
Me too.cnavarro wrote:I download it without problem