Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Spellchecking with TX TextControl
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Spellchecking with TX TextControl
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Application:
Desktop
Divers
Thread ID:
01658492
Message ID:
01658492
Vues:
84
Hi all,
Has anyone implemented spell checking in VFP with TX TextControl ActiveX?
I am using the most recent version of TX TextControl, and an instance of the the TXSpell control created with .NET. The signaling of misspelled words' positions to TX TextControl is done through a parameter (array of long) passed by ref to a method executed when SpellCheck event is raised. All events are raised as expected. The problem is the passing of the misspelled words positions array from TXSpell to TX TextControl, through VFP.
To illustrate, the process is supposed to happen like this:

TX TextControl raises a SpellCheckText event with 2 parameters; the method invoked looks like this:
PROCEDURE SpellCheckText(text, misspelledwordpositions)
* Ask the spellchecker TXSpell to check text
TXSpell.Check(text)  && at this point, all misspelled words' positions are available in an array property of TXSpell
* And here, the array reference should be passed to TX TextControl through the misspelledwordpositions parameter
misspelledwordpositions = TXSpell.MisspelledWordPositions
* Obviously, the above assignment cannot work, since the reference to the .NET array created by TXSpell cannot be assigned just like that to a var in VFP.
The problem is that the only way to signal misspellings to the TX TextControl is through the event method above.
Any suggestions on how to handle the passing of a .NET array from one control to another through VFP?
*
Or, maybe there's another way to accomplish text spelling with TX TextControl?
TIA
*
Répondre
Fil
Voir

Click here to load this message in the networking platform