PyCRichEditCtrl Object

A windows Rich Text edit control. Encapsulates an MFC CRichEditCtrl class. Derived from a PyCControl object.

Methods

Clear
Clears all text from an edit control. 

Copy
Copy the selection to the clipboard. 

CreateWindow
Creates a rich edit control. 

Cut
Cut the selection, and place it in the clipboard. 

FindText
Finds text in the control 

GetCharPos
Returns te location of the top-left corner of the specified character. 

GetDefaultCharFormat
Returns the current default character formatting attributes in this PyCRichEditCtrl object. 

GetEventMask
Returns the current event mask. 

GetSelectionCharFormat
Returns the character formatting attributes of the current selection in this PyCRichEditCtrl object. 

GetFirstVisibleLine
Returns zero-based index of the topmost visible line. 

GetParaFormat
Returns the formatting of the current paragraph. 

GetSel
Returns the selection. 

GetSelText
Returns the currently selected text 

GetTextLength
Returns the length of the text in the control. 

GetLine
Returns a specified line. 

GetModify
Determines if the control has been modified. 

GetLineCount
Returns the number of lines in an edit control. 

LimitText
Sets max length of text that user can enter 

LineFromChar
Returns the line number of a given character. 

LineIndex
Returns the line index 

LineScroll
Scroll the control vertically and horizontally 

Paste
Pastes the contents of the clipboard into the edit control. 

ReplaceSel
Replace the selection with the specified text. 

SetBackgroundColor
Sets the background color for the control. 

SetDefaultCharFormat
Sets the current default character formatting attributes in this PyCRichEditCtrl object. 

SetEventMask
Sets the event motification mask. 

SetSelectionCharFormat
Sets the character formatting attributes for the selection in this PyCRichEditCtrl object. 

SetModify
Sets the modified flag. 

SetOptions
Sets options for the control. 

SetParaFormat
Sets the paragraph formatting. 

SetReadOnly
Set the read only status of an edit control. 

SetSel
Changes the selection in an edit control. 

SetSelAndCharFormat
Sets the selection and the char format. 

SetTargetDevice
Sets the target device for the control 

StreamIn
Invokes a callback to stream data into the control. 

StreamOut
Invokes a callback to stream data out of the control.