FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
Word processing control
Word processing control
Débuté par DerekT, 27 juin 2017 12:33 - 2 réponses
Connectez-vous…
DerekT
#1
Posté le 27 juin 2017 - 12:33
Having a play with the above.
No (promised) updates yet which is poor as this is one of the 'flagship' items of v22 but there we are, this is PCS.
That said there are quite a lot of things that can already be achieved with the functions available.
One thing that I cannot find is how to make the document active....
Creating a new document, setting the font and font size is fine.
The document opens and the cursors sits at the beginning blinking as expected.
However the document is not actually active - no text can be entered until a mouse click is applied to the control.
Same applies with cut&paste.
Manually - Ctrl-C, Ctrl-V - works fine.
By code it is possible to paste into or at the end of a sentence and place the cursor at the end of the sentence.
Same problem - Cursor is blinking but the document itself does not, it would seem, have focus.
Anyone playing with this come up with a solution?
Signaler
0
0
Fabrice Harari
#2
Posté le 27 juin 2017 - 13:20
Hi Derek
did you simply try to send a mouse click to the control with the sendkey function?
Best regards
Signaler
0
0
DerekT
#3
Posté le 27 juin 2017 - 16:02
Fabrice
I hadn't - now I have and it works perfectly.
Guess I had got bogged down with all the 'DocFragment' stuff etc.
Help on this and other 'Docxxx' functions is not great - viewed in debug they do create quite complex structures to hold all the variables.
Anyway onward and upward - you are the man.
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte