I've made fixes and improvements to the i00SpellCheck library program (October 17, 2021) so that the spell-checker properly makes replacements in the case of documents/selections containing invisible (but not necessarily protected) text, and set up the spell-check option in the main program so that it skips over custom-link text within a document/selection (the spell-check dialog is invoked for each non-link region within the text in question).Smaller revisions were made earlier in December 2021. The auxiliary control class TextRuler's events are now implemented by protected overridable "On" methods (December 28, 2021). Also, the InsertPicture method no longer has the overload that converts an Image to a Bitmap (no longer needed since Bitmap derives from Image, this change shouldn't break any code), and the PrintRichTextBox class library has a new method, InsertImage-which allows one to place an image into a standard RichTextBox-once again, without using the clipboard. The control no longer relies on the clipboard to insert images into a document (January 28, 22)! The modifications are derived from the source code for Khendys Gordon 's "Insert Plain Text and Images into RichTextBox at Runtime", and relies on generating the RTF code for spelling out in image wrapped in a Windows Metafile-which is what the RichTextBox control and WordPad do when images are pasted in. The file overload inserts a picture file as an icon if its extension is ".ico", as a metafile if its extension is ".wmf", and as a bitmap for any other extension. The icon overload of InsertPicture calls a new extension method in PrintRichTextBox, InsertIcon-which inserts an icon into the rich-text box using the background color of the current caret position or selection as the transparent color-unless that value is Color.Empty (indicating multiple background colors in a selection), in which case the general background color is used. This tip features the RichTextBo圎x control-an enhanced version of the " Extended RichTextBox" created by Razi Syed-along with i00's spell-checker, i00 Spell Check and Control Extensions - No Third Party Components Required! (a slight-bug-corrected version, with EXE and dictionary/definition files included only)-plus a class library for printing rich text, getting scroll-bar info, setting list-styles, and dealing with RTF (standard or enhanced control), a ruler control specially designed for rich-text boxes, and a small demo program. Optional displaying of hard page breaks as dashed lines.Add additional options to the control's context menu and toolstrip-allowing one to add additional functionality to the control through external code, as if it were "built-in".Wrinkly-line auto-spell-checking (aka "continuous spell-check").Redraw-mode setting and smart RTF escaping and insertion.Optional "custom links", in which links have arbitrary visible text and hidden hypertext (link destination).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |