Add
an easy-to-use edit control that supports built-in HTML format, and syntax
highlighting as well. You can define your own keywords and expressions using
built-in HTML expressions. The control is fully written in C++ using ATL. You
should know that the control is written from scratch and it does NOT use or
subclass the RichEdit control or Windows Edit control. The Edit control
supports the following methods and properties:
| | Name | Description | |
| | ActiveContextItems | Specifies the key of the context to be open next. | |
| | AddExpression | Adds a single or multiple lines expression to a sensitive control. | |
| | AddKeyword | Adds a keyword to a sensitive control. | |
| | AddWild | Adds a wild characters expression to a sensitive control. | |
| | AllowContextMenu | Specifies whether the control's default context menu is available. | |
| | AllowFind | Specifies whether control displays a find dialog when user presses CTRL+F key. | |
| | AllowIncrementalSearch | Specifies whether the control allows incremental search. | |
| | AllowInlineToolTip | Indicates that the current line shows inline tooltip for keywords found to the caret. | |
| | AllowMark | Specifies a value that indicates whether the positions in text of expressions are marked on the vertical scroll bar. | |
| | AllowReplace | Specifies whether control displays a replace dialog when user presses CTRL+H key. | |
| | AllowSplitter | Specifies whether the control's splitter is visible or hidden. | |
| | AllowUndoRedo | Specifies whether the control allows undo/redo actions. | |
| | Appearance | Retrieves or sets the control's appearance. | |
| | ApplyColors | Specifies whether the control applies the HTML colors. | |
| | AttachTemplate | Attaches a script to the current object, including the events, from a string, file, a safe array of bytes. | |
| | AutoIndent | Specifies whether the control indents the line when ENTER key is pressed. | |
| | BackColor | Retrieves or sets a value that indicates the control's background color. | |
| | BackColorAlternate | Returns or sets the background color used to display alternate lines in the control. | |
| | BackColorCaretLine | Returns or sets the background color used to display the cursor line. | |
| | BackColorLine | Specifies the line's background color. | |
| | BackColorLockedLine | Retrieves or sets a value that indicates the line's background color when it is locked. | |
| | Background | Returns or sets a value that indicates the background color for parts in the control. | |
| | Bookmark | Adds or removes a bookmark. | |
| | BookMarkBackColor | Specifies the bookmark bar background's color. | |
| | BookMarkBackColor2 | Specifies the bookmark bar background's color. | |
| | BookmarkBorderColor | Specifies the color for bookmark's border. | |
| | BookmarkImage | Specifies the index of image being displayed when the line has a bookmark. | |
| | BookmarkImageLine | Retrieves or sets a value that indicates the index of image being displayed on the bookmark header. | |
| | BookmarksList | Specifies the list of bookmarks.. | |
| | BookmarkWidth | Specifies the bookmarks border's width. | |
| | CanRedo | Determines if the redo queue contains any actions. | |
| | CanUndo | Determines whether the last edit operation can be undone. | |
| | Caption | Specifies the caption for a field on the Find or Replace dialog. | |
| | CaretLine | Specifies the line of caret. | |
| | CaretPos | Retrieves or sets a value that indicates the position of the caret in the line. | |
| | CaretPosX | Retrieves the x-coordinate of the caret in pixels, relative to the control's client area. | |
| | CaretPosY | Retrieves the y-coordinate of the caret, in pixels relative to the control's client area. | |
| | ChangeOnKey | Specifies the code of the last key that alters the control's text. | |
| | ClearBackColorLine | Clears the line's background color. | |
| | ClearBookmarks | Clears all bookmarks. | |
| | ClearExpressions | Clears the expressions collection into a sensitive control. | |
| | ClearForeColorLine | Clears the line's foreground color. | |
| | ClearKeywords | Clears the keywords collection into a sensitive control. | |
| | ClearWilds | Clears the wild characters expressions collection into a sensitive control. | |
| | ClientToCursor | Converts client coordinates to cursor coordinates. | |
| | CloseBrackets | Specifies the list of closed brackets. | |
| | CodeCompletion | Specifies whether the code completion feature is enabled or disabled. | |
| | Context | Gets the context's collection. | |
| | ContextKey | Specifies the key combination that opens the control's context window. | |
| | ContextMenuItems | Specifies a list of items that are added to the control's context menu. | |
| | Count | Counts the lines in the control. | |
| | Cursor | Gets or sets the cursor that is displayed when the mouse pointer hovers the control. | |
| | DeleteExpression | Deletes an expression from expressions collection. | |
| | DeleteKeyword | Deletes a keyword from keywords collection. | |
| | DeleteLine | Deletes the line. | |
| | DeleteWild | Deletes an entry from the wild characters expressions collection. | |
| | DisplaySelection | Specifies whether the control displays the selection. | |
| | DrawGridLines | Returns or sets a value that determines whether lines are drawn between rows, or unpopulated areas. | |
| | EditType | Specifies the control's type. | |
| | Enabled | Enables or disables the control. | |
| | EnsureVisibleLine | Ensures that specified line is visible. | |
| | EventParam | Retrieves or sets a value that indicates the current's event parameter. | |
| | ExcludeInlineToolTip | Specifies a list of keywords, separated by , ( comma character), that specifies the keywords to be excluded from the inline tooltip support. | |
| | ExecuteTemplate | Executes a template and returns the result. | |
| | FileName | Specifies the name of the file being loaded or saved. | |
| | Find | Finds a string and selects the string if it is found. | |
| | FocusPane | Specifies the index of pane that has the focus. | |
| | Font | Retrieves or sets the control's font. | |
| | ForeColor | Retrieves or sets a value that indicates the control's foreground color. | |
| | ForeColorLine | Specifies the line's foreground color. | |
| | ForeColorLockedLine | Retrieves or sets a value that indicates the line's foreground color when it is locked. | |
| | FormatNumbers | Specifies the HTML format that's applied to numbers. | |
| | GetSelection | Retrieves the coordinates of the selection. | |
| | HideSelection | Specifies whether the selection in the control is hidden when the control loses the focus. | |
| | HTMLText | Specifies the control's HTML text. | |
| | hWnd | Gets the window's handle. | |
| | hWndPane | Gets the window handle of the control's pane. | |
| | IgnorePrefixInExpression | Specifies a value that indicates the prefix that's ignored in the expression. | |
| | Images | Sets the control's images list at runtime. The Handle should be a handle to an Image List control. | |
| | ImageSize | Specifies the size of the control' icons. | |
| | IncrementalSearchError | Retrieves or sets a value that specifies the color to show the 'Incremental Search' field when the typing string is not found. | |
| | IndentOnTab | Specifies whether the multiple lines selection is indented when user presses the TAB key. | |
| | IndentSel | Indents the selected text. | |
| | InsertText | Inserts text to control. | |
| | LineHeight | Specifies an expression that determines the height of the line within the editor. | |
| | LineNumberBackColor | Specifies the background color of the line number bar. | |
| | LineNumberBorderColor | Specifies the color for line number's border. | |
| | LineNumberFont | Retrieves or sets the font of the line numbers bar. | |
| | LineNumberForeColor | Specifies the foreground color of the line number bar. | |
| | LineNumberWidth | Specifies the width of the border where the that contains the line numbers. | |
| | Load | Loads a file. | |
| | LoadFromUnicode | Loads from an UNICODE file. | |
| | Locked | Determines whether a control can be edited. | |
| | LockedLine | Specifies whether a line is locked or unlocked. | |
| | Margin | Defines the distance between text and inner border (border, line-numbers or bookmarks ). | |
| | MarkColor | Specifies a color being used to mark the position of the expression, on the control's vertical scroll bar. | |
| | MarkContinueBlocks | Marks continuously the blocks. | |
| | MultiLine | Specifies whether the control accepts multiple lines. | |
| | NextBookmark | Moves the cursor to the next bookmark. | |
| | OLEDrag | Causes a component to initiate an OLE drag/drop operation. | |
| | OLEDropMode | Returns or sets how a target component handles drop operations | |
| | OpenBrackets | Specifies the list of opened brackets. | |
| | Overtype | Specifies whether the control is running in overtype mode. | |
| | PagesContextItems | Specifies the pages (key[:caption]) of the control's senzitive context, separted by comma character. | |
| | Picture | Retrieves or sets a graphic to be displayed in the control. | |
| | PictureDisplay | Retrieves or sets a value that indicates the way how the graphic is displayed on the control's background | |
| | PrevBookmark | Moves the cursor to the prior bookmark. | |
| | RClick | Specifies whether the control's cursor is placed at the mouse position when user right clicks the control. | |
| | Redo | Redoes the next action in the control's redo queue. | |
| | Refresh | Refreshes the control. | |
| | ReplaceIcon | Adds a new icon, replaces an icon or clears the control's image list. | |
| | Save | Saves the control's text to a file. | |
| | SaveAsUnicode | Saves the control's text to file as UNICODE. | |
| | ScrollBars | Specifies the type of scroll bars that control has. | |
| | ScrollButtonHeight | Specifies the height of the button in the vertical scrollbar. | |
| | ScrollButtonWidth | Specifies the width of the button in the horizontal scrollbar. | |
| | ScrollFont | Retrieves or sets the scrollbar's font. | |
| | ScrollHeight | Specifies the height of the horizontal scrollbar. | |
| | ScrollOrderParts | Specifies the order of the buttons in the scroll bar. | |
| | ScrollPartCaption | Specifies the caption being displayed on the specified scroll part. | |
| | ScrollPartCaptionAlignment | Specifies the alignment of the caption in the part of the scroll bar. | |
| | ScrollPartEnable | Indicates whether the specified scroll part is enabled or disabled. | |
| | ScrollPartVisible | Indicates whether the specified scroll part is visible or hidden. | |
| | ScrollThumbSize | Specifies the size of the thumb in the scrollbar. | |
| | ScrollToolTip | Specifies the tooltip being shown when the user moves the scroll box. | |
| | ScrollWidth | Specifies the width of the vertical scrollbar. | |
| | SelBackColor | Specifies the selection's background color. | |
| | SelBackColorHide | Specifies the selection's background color, when the control has no focus, and the HideSelection property is False. | |
| | SelectLine | Selects a line by code. | |
| | SelForeColor | Specifies the selection's foreground color. | |
| | SelForeColorHide | Specifies the selection's foreground color, when the control has no focus, and the HideSelection property is False. | |
| | SelLength | Returns or sets the number of characters selected. | |
| | SelStart | Returns or sets the starting point of text selected; indicates the position of the insertion point if no text is selected. | |
| | SelText | Returns or sets the string containing the currently selected text. | |
| | SetSelection | Selects the text giving the start and end coordinates. | |
| | Show | Specifies the order and visibility of wild, keyword, expression and format-numbers within the control. | |
| | ShowCaret | Specifies whether the control's caret is visible or hidden. | |
| | ShowContext | Shows the control's context, as the user would press the CTRL + SPACE key. | |
| | ShowImageList | Specifies whether the control's images panel dialog is visible or hidden. | |
| | ShowToolTip | Shows the specified tooltip at given position. | |
| | SplitPaneHeight | Specifies a value that indicates the height in pixels of the top pane(s) when splitting. | |
| | SplitPaneWidth | Specifies a value that indicates the width in pixels of the left pane(s) when splitting. | |
| | TabLength | Specifies the size of each tab stop, in units equal to the average character width. | |
| | TempInlineToolTip | Specifies a temporarily inline tooltip to be shown on the current line. | |
| | Template | Specifies the control's template. | |
| | TemplateDef | Defines inside variables for the next Template/ExecuteTemplate call. | |
| | TemplatePut | Defines inside variables for the next Template/ExecuteTemplate call. | |
| | Text | Specifies the control's text. | |
| | TextLine | Specifies the line based on its index. | |
| | ToolTipDelay | Specifies the time in ms that passes before the ToolTip appears. | |
| | ToolTipFont | Retrieves or sets the tooltip's font. | |
| | ToolTipMargin | Defines the size of the control's tooltip margins. | |
| | ToolTipOnTyping | Specifies a value that indicates whether the tooltip of the keyword is shown while typing. | |
| | ToolTipPopDelay | Specifies the period in ms of time the ToolTip remains visible if the mouse pointer is stationary within a control. | |
| | ToolTipWidth | Specifies a value that indicates the width of the tooltip window, in pixels. | |
| | Undo | Call this function to undo the last edit-control operation. | |
| | UseTabKey | Specifies whether the control uses the TAB key. | |
| | Version | Retrieves the control's version. | |
| | VisualAppearance | Retrieves the control's appearance. | |
| | WordFromPoint | Retrieves the word from the cursor. | |