Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sluggish response in form with RTF controls and timer
Message
De
07/06/2006 03:07:39
John Faithfull
Hunterian Museum, University of Glasgow,
Glasgow, Royaume Uni
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01127055
Message ID:
01127539
Vues:
18
Hi Bo,

Thanks once again for this. I've tried your

nTLen = SendMessage_C(THISFORM.Title_Olecontrol1.hWnd, 1119, REPLICATE(CHR(0),8), 0)

approach and it seems much faster, and makes the form much more repsonsive. However, the number it returns is puzzling. It seems to bear no obvious relation to either the length of displayed text, or the length of the control source memo field

For an RTF control displaying 26 characters of text, and with a total (text+RTF tags etc) length of 379 characters, the above line gives nTLen=261.

I had a look on MSDN - does EM_GETTEXTLENGTHEX need a Unicode RTF control to work properly? Or is there another answer?

Cheers

John
Dr. JW Faithfull
Curator in Geology
Hunterian Museum
University of Glasgow
Glasgow G12 8QQ
Scotland
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform