PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → HTML Edit: how to add text at the end of content
HTML Edit: how to add text at the end of content
Débuté par HeliRetzek, 02 juin 2022 16:37 - Aucune réponse
Posté le 02 juin 2022 - 16:37
how can I put text at the end of the HTML-Edit control? I have some HTML-Formated long Signature that i want to programmatically put after/behind the Email-Text that I was clicking together and sometimes typing. It always keeps the insertion point where i was typing the last time.

I try to emulate Input into the HTMEDT-Control, to no avail

gsSignatur is ANSI string = " some html-text that I stored in database "#

EmulateInput(HTMEDT_Edit,"{DOWN}",eiControl)
EmulateInput(HTMEDT_Edit,"{PGDN}",eiControl)
EmulateInput(HTMEDT_Edit,"{END}",eiControl)
EmulateInput(HTMEDT_Edit,"{DOWN}")
EmulateInput(HTMEDT_Edit,"{PGDN}")
EmulateInput(HTMEDT_Edit,"{END}")
EmulateInput(HTMEDT_Edit," ",eiControl)

HTMEDT_Edit.Insert(gsSignatur)

does not work

Question: how do I add text securely to the end of the HTML-Editor-Control