Back to the Packages
Constructor
new Win32::GUI::RichEdit(PARENT, %OPTIONS)
Methods
BackColor([COLOR])
CharFromPos(X, Y)
FirstVisibleLine()
GetCharFormat([FLAG])
LineFromChar(INDEX)
Load(FILENAME, [FORMAT])
PosFromChar(INDEX)
ReplaceSel(STRING, [FLAG])
Save(FILENAME, [FORMAT])
Select(START, END)
Selection()
SetCharFormat(%OPTIONS)
SetParaFormat(%OPTIONS)
Events
Change()
GotFocus()
LostFocus()
Creates a new RichEdit object; can also be called as PARENT->AddRichEdit(%OPTIONS).
Sets the background color of the RichEdit control; if no COLOR is specified, the background color is reset to the default system color.
CharFromPos(X, Y) Returns a two elements array identifying the character nearest to the position specified by X and Y. The array contains the zero-based index of the character and its line index. FirstVisibleLine() Returns the first visible line in the RichEdit control. GetCharFormat([FLAG]) [TBD] LineFromChar(INDEX) Returns the line number where the zero-based INDEX character appears. Load(FILENAME, [FORMAT]) Loads a file named FILENAME into the RichEdit control. By default the file is a RTF (Rich Text Format) file; if you want to load a plain text file, you can set FORMAT to 1. PosFromChar(INDEX) Returns a two elements array containing the x and y position of the specified zero-based INDEX character in the RichEdit control. ReplaceSel(STRING, [FLAG]) Replaces the current selection with the given STRING. The optional FLAG parameter can be set to zero to tell the control that the operation cannot be undone; see also Undo(). Save(FILENAME, [FORMAT]) Saves the content of the RichEdit control in a file named FILENAME. By default the file is a RTF (Rich Text Format) file; if you want to save in a plain text file, you can set FORMAT to 1. Select(START, END) Selects the characters range from START to END. Selection() Returns a two elements array containing the current selection start and end. SetCharFormat(%OPTIONS) [TBD] SetParaFormat(%OPTIONS) [TBD]
Returns a two elements array identifying the character nearest to the position specified by X and Y. The array contains the zero-based index of the character and its line index.
FirstVisibleLine() Returns the first visible line in the RichEdit control. GetCharFormat([FLAG]) [TBD] LineFromChar(INDEX) Returns the line number where the zero-based INDEX character appears. Load(FILENAME, [FORMAT]) Loads a file named FILENAME into the RichEdit control. By default the file is a RTF (Rich Text Format) file; if you want to load a plain text file, you can set FORMAT to 1. PosFromChar(INDEX) Returns a two elements array containing the x and y position of the specified zero-based INDEX character in the RichEdit control. ReplaceSel(STRING, [FLAG]) Replaces the current selection with the given STRING. The optional FLAG parameter can be set to zero to tell the control that the operation cannot be undone; see also Undo(). Save(FILENAME, [FORMAT]) Saves the content of the RichEdit control in a file named FILENAME. By default the file is a RTF (Rich Text Format) file; if you want to save in a plain text file, you can set FORMAT to 1. Select(START, END) Selects the characters range from START to END. Selection() Returns a two elements array containing the current selection start and end. SetCharFormat(%OPTIONS) [TBD] SetParaFormat(%OPTIONS) [TBD]
Returns the first visible line in the RichEdit control.
GetCharFormat([FLAG]) [TBD] LineFromChar(INDEX) Returns the line number where the zero-based INDEX character appears. Load(FILENAME, [FORMAT]) Loads a file named FILENAME into the RichEdit control. By default the file is a RTF (Rich Text Format) file; if you want to load a plain text file, you can set FORMAT to 1. PosFromChar(INDEX) Returns a two elements array containing the x and y position of the specified zero-based INDEX character in the RichEdit control. ReplaceSel(STRING, [FLAG]) Replaces the current selection with the given STRING. The optional FLAG parameter can be set to zero to tell the control that the operation cannot be undone; see also Undo(). Save(FILENAME, [FORMAT]) Saves the content of the RichEdit control in a file named FILENAME. By default the file is a RTF (Rich Text Format) file; if you want to save in a plain text file, you can set FORMAT to 1. Select(START, END) Selects the characters range from START to END. Selection() Returns a two elements array containing the current selection start and end. SetCharFormat(%OPTIONS) [TBD] SetParaFormat(%OPTIONS) [TBD]
[TBD]
LineFromChar(INDEX) Returns the line number where the zero-based INDEX character appears. Load(FILENAME, [FORMAT]) Loads a file named FILENAME into the RichEdit control. By default the file is a RTF (Rich Text Format) file; if you want to load a plain text file, you can set FORMAT to 1. PosFromChar(INDEX) Returns a two elements array containing the x and y position of the specified zero-based INDEX character in the RichEdit control. ReplaceSel(STRING, [FLAG]) Replaces the current selection with the given STRING. The optional FLAG parameter can be set to zero to tell the control that the operation cannot be undone; see also Undo(). Save(FILENAME, [FORMAT]) Saves the content of the RichEdit control in a file named FILENAME. By default the file is a RTF (Rich Text Format) file; if you want to save in a plain text file, you can set FORMAT to 1. Select(START, END) Selects the characters range from START to END. Selection() Returns a two elements array containing the current selection start and end. SetCharFormat(%OPTIONS) [TBD] SetParaFormat(%OPTIONS) [TBD]
Returns the line number where the zero-based INDEX character appears.
Load(FILENAME, [FORMAT]) Loads a file named FILENAME into the RichEdit control. By default the file is a RTF (Rich Text Format) file; if you want to load a plain text file, you can set FORMAT to 1. PosFromChar(INDEX) Returns a two elements array containing the x and y position of the specified zero-based INDEX character in the RichEdit control. ReplaceSel(STRING, [FLAG]) Replaces the current selection with the given STRING. The optional FLAG parameter can be set to zero to tell the control that the operation cannot be undone; see also Undo(). Save(FILENAME, [FORMAT]) Saves the content of the RichEdit control in a file named FILENAME. By default the file is a RTF (Rich Text Format) file; if you want to save in a plain text file, you can set FORMAT to 1. Select(START, END) Selects the characters range from START to END. Selection() Returns a two elements array containing the current selection start and end. SetCharFormat(%OPTIONS) [TBD] SetParaFormat(%OPTIONS) [TBD]
Loads a file named FILENAME into the RichEdit control. By default the file is a RTF (Rich Text Format) file; if you want to load a plain text file, you can set FORMAT to 1.
PosFromChar(INDEX) Returns a two elements array containing the x and y position of the specified zero-based INDEX character in the RichEdit control. ReplaceSel(STRING, [FLAG]) Replaces the current selection with the given STRING. The optional FLAG parameter can be set to zero to tell the control that the operation cannot be undone; see also Undo(). Save(FILENAME, [FORMAT]) Saves the content of the RichEdit control in a file named FILENAME. By default the file is a RTF (Rich Text Format) file; if you want to save in a plain text file, you can set FORMAT to 1. Select(START, END) Selects the characters range from START to END. Selection() Returns a two elements array containing the current selection start and end. SetCharFormat(%OPTIONS) [TBD] SetParaFormat(%OPTIONS) [TBD]
Returns a two elements array containing the x and y position of the specified zero-based INDEX character in the RichEdit control.
ReplaceSel(STRING, [FLAG]) Replaces the current selection with the given STRING. The optional FLAG parameter can be set to zero to tell the control that the operation cannot be undone; see also Undo(). Save(FILENAME, [FORMAT]) Saves the content of the RichEdit control in a file named FILENAME. By default the file is a RTF (Rich Text Format) file; if you want to save in a plain text file, you can set FORMAT to 1. Select(START, END) Selects the characters range from START to END. Selection() Returns a two elements array containing the current selection start and end. SetCharFormat(%OPTIONS) [TBD] SetParaFormat(%OPTIONS) [TBD]
Replaces the current selection with the given STRING. The optional FLAG parameter can be set to zero to tell the control that the operation cannot be undone; see also Undo().
Save(FILENAME, [FORMAT]) Saves the content of the RichEdit control in a file named FILENAME. By default the file is a RTF (Rich Text Format) file; if you want to save in a plain text file, you can set FORMAT to 1. Select(START, END) Selects the characters range from START to END. Selection() Returns a two elements array containing the current selection start and end. SetCharFormat(%OPTIONS) [TBD] SetParaFormat(%OPTIONS) [TBD]
Saves the content of the RichEdit control in a file named FILENAME. By default the file is a RTF (Rich Text Format) file; if you want to save in a plain text file, you can set FORMAT to 1.
Select(START, END) Selects the characters range from START to END. Selection() Returns a two elements array containing the current selection start and end. SetCharFormat(%OPTIONS) [TBD] SetParaFormat(%OPTIONS) [TBD]
Selects the characters range from START to END.
Selection() Returns a two elements array containing the current selection start and end. SetCharFormat(%OPTIONS) [TBD] SetParaFormat(%OPTIONS) [TBD]
Returns a two elements array containing the current selection start and end.
SetCharFormat(%OPTIONS) [TBD] SetParaFormat(%OPTIONS) [TBD]
SetParaFormat(%OPTIONS) [TBD]
Sent when the text in the field is changed by the user.
GotFocus() Sent when the control is activated. LostFocus() Sent when the control is deactivated.
Sent when the control is activated.
LostFocus() Sent when the control is deactivated.
Sent when the control is deactivated.
3 POD Errors
The following errors were encountered while parsing the POD:
You can't have =items (as at line 107) unless the first thing after the =over is an =item
You can't have =items (as at line 122) unless the first thing after the =over is an =item
You can't have =items (as at line 250) unless the first thing after the =over is an =item
To install Win32::GUI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Win32::GUI
CPAN shell
perl -MCPAN -e shell install Win32::GUI
For more information on module installation, please visit the detailed CPAN module installation guide.