Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 1 Jahr
Letzter Beitrag:
vor 1 Jahr
Beteiligte Autoren:
DerekT, Fabrice Harari

Word processing control

Startbeitrag von DerekT am 27.06.2017 10: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?


Hi Derek

did you simply try to send a mouse click to the control with the sendkey function?

Best regards

von Fabrice Harari - am 27.06.2017 11:20

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.

von DerekT - am 27.06.2017 14:02
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.