Dear gang,
Has anyone come across a "good" 3rd party spell checker to use with ActiveX? We are having issues with the spell checker from MS Word as it relates to HTML.
Any tips would be greatly appreciated.
Regards,
Joseph

3rd Party Spell Checker
Started by Joseph Bove, Jun 22 2005 02:23 PM
3 replies to this topic
#2
Posted 22 June 2005 - 07:59 PM
I have had good luck using WSpell from Wintertree Software.
http://www.wintertre....com/index.html
This requires a text box that can pass the hwnd property to the spell checker. We used Microsofts ActiveX text box that is used in the ProIV Demo with VIP. Their is a problem with it however that the scroll bar does not work and can not be set from ProIV, it is a design time setting. I now have an updated version that I put a VB wrapper around that brings in the control with the scroll bar turned on. It would be a simple thing to do for any one who has created an ActiveX control.
This spell checker can be purchased with a developers license and free runtime license the cost is relatively low. It takes very little code and you can be up and running.
Once the controls are in place the following code placed in the "On Focus" property of the ActiveX text box.
GrpWriteX.MaxLength = 1000 // sets length limit of text box, remember ProIV has a limit of 2k.
$HANDLE = GrpWriteX.Hwnd // grabs windows handle of text box when it becomes active
The this code place in the "Before Write" event will do the entire process.
#SPELLSTART = 0
GrpWriteX.HideSelection = FALSE
Wspell.ShowContext = FALSE
Wspell.IgnoreCapitalizedWords = FALSE
Wspell.IgnoreMixedCaseWords = FALSE
Wspell.TextControlHWnd = CONV($HANDLE)
#SPELLSTART = Wspell.Start()
MRSITUATIONG = GrpWriteX.Text
They also have and SDK version that we looked at but this made more sense for out application.
Hope this helps.
http://www.wintertre....com/index.html
This requires a text box that can pass the hwnd property to the spell checker. We used Microsofts ActiveX text box that is used in the ProIV Demo with VIP. Their is a problem with it however that the scroll bar does not work and can not be set from ProIV, it is a design time setting. I now have an updated version that I put a VB wrapper around that brings in the control with the scroll bar turned on. It would be a simple thing to do for any one who has created an ActiveX control.
This spell checker can be purchased with a developers license and free runtime license the cost is relatively low. It takes very little code and you can be up and running.
Once the controls are in place the following code placed in the "On Focus" property of the ActiveX text box.
GrpWriteX.MaxLength = 1000 // sets length limit of text box, remember ProIV has a limit of 2k.
$HANDLE = GrpWriteX.Hwnd // grabs windows handle of text box when it becomes active
The this code place in the "Before Write" event will do the entire process.
#SPELLSTART = 0
GrpWriteX.HideSelection = FALSE
Wspell.ShowContext = FALSE
Wspell.IgnoreCapitalizedWords = FALSE
Wspell.IgnoreMixedCaseWords = FALSE
Wspell.TextControlHWnd = CONV($HANDLE)
#SPELLSTART = Wspell.Start()
MRSITUATIONG = GrpWriteX.Text
They also have and SDK version that we looked at but this made more sense for out application.
Hope this helps.
Reply to this topic

0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users