|
|||||||
| TX Text Control RapidSpell .NET Please use this forum for TX Text Control RapidSpell .NET support only. If you need support for a different product, please use the appropriate forum. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Check As You Type Bad Words & Context Menus
Hello,
I'm using the latest RapidSpell and version of TX Text Control, and I've implemented the Rapid Spell As You Type component to check for misspelled words while the user works on the document. Also - when the user right clicks on the TX Text Control I have a 3rd party context menu I'm displaying for like bold, Italic, underline, etc. This is just to mimic some of the features of Word where the user can right click on a misspelled word and fix the spelling, but also right click on a non-misspelled word and change formatting. Right now I'm just handling the right click in the Mouse Down Event so the context menu always appears, and not the misspelled word context menu. Does anyone know how to check if I'm right clicking on a misspelled word versus anywhere else in the document? Thanks. |
|
#2
|
|||
|
|||
|
Re: Check As You Type Bad Words & Context Menus
Actually, I figured this out myself - if anyone is interested, set the ContextMenuStripDefault property on the TXTextControlAdapter. This will display the default context menu if the currently selected word isn't a misspelled word. Then if you right click on the word that is misspelled, then it will display the context menu with suggestions. The only problem is you have to use a Windows context menu control, not a 3rd party one. Maybe this would be a feature suggestion in the future to fire an event that the application could catch to handle it's own context menus.
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Spell check as you type - example please? | pritcham | TX Text Control .NET | 2 | June 2, 2008 12:06:03 |
| Style properties - Bug? | Unregistered | TX Text Control ActiveX | 11 | November 7, 2006 13:05:42 |
| Check spelling as you type | liosatha | TX Text Control ActiveX | 1 | August 25, 2004 17:20:28 |
| Adding Words with spell Check | dgebhardt | TX Text Control ActiveX | 1 | April 15, 2003 10:11:30 |