Unregistered
December 10, 2002, 16:20:45
I have just installed your .net demo. I was using a dotnet spell checker, rapidspell which has a method spell(textbox), which runs a spell check on the contents of a text box or rtf box. It will not accept a txtcontrol box as an argument only asking for a TextBoxBase object as an argument. Is there some workaround for this (I also asked them the same questions).
Alternatively, do you recommend any spell checkers for the dotnet version?
This message was originally posted by Haim Katz in the old TX Text Control Support Forum.
Björn Meyer
December 11, 2002, 17:55:52
Hello Haim
Currently, we can't recommend a .NET spell checker, as we haven't tested any. We have also no experience with the rapidspell component.
To all other users: Do you have any experience with a spell checker and the TX?
Björn Meyer, TX Text Control
This message was originally posted by Björn Meyer in the old TX Text Control Support Forum.
Unregistered
December 12, 2002, 16:38:14
Bjorn,
Thanks for your quick responses to both questions. I sent the same question to Jim Wright of rapidspell. I include his response and you may want to pursue this with him.
Dear Haim, thanks for writing, I have looked through the docs for txtControl
and it appears that it is derived from Control, and thus won't work
directly, as you found. However, that is not to say that it's not possible
at all, since RapidSpell only requires a certain limited interface from the
text component it is possible that you could do a little custom programming
to achieve this. Firstly you would extend (derive/inherit) the txtControl
class in to a new class, in which you would implement the required interface
to use RapidSpell, currently this is (from TextBoxBase)
Properties - HideSelection, Text, SelectionStart, SelectionLength
Events - GotFocus
Methods - n/a
it appears that all of these are covered in some way by the API of
txtControl, this means that your class would look something like this
public class RSTxtControl : TxtControl, IRapidSpellTextComponent{
public int SelectionStart{
get{ return Selection.Start; }
set{ Selection.Start = value; }
}
......
}
where IRapidSpellTextComponent would be an interface we would create, to
allow you to interface your class with RapidSpell.
Thus your class would map between the required properties and event to the
ones in TxtControl. It is possible that we will develop an interface for
3rd party text controls, but this may not be for a while. If you would like
to pursue this please let me know.
By the way. I also installed CS1spell's demo and found the same problem. It also requires the control to be derived from textboxbase.
This message was originally posted by Haim Katz in the old TX Text Control Support Forum.