|
|
Visits:
2456
(39 on line)
|
Last Update: Dec 5, 2003
|
|
|
|
| | |
| Description Inheritance Example Properties Methods |
| |
| Description |
The TRichEdit5 Object is a cover object for the APL+Win RichEdit object It contains several additional properties and methods especially including <Find> which searches for substrings in the RichEdit text and highlight hits |
| Description Inheritance Example Properties Methods |
| |
| Inheritance |
Inherits from: TObject5 |
| Description Inheritance Example Properties Methods |
| |
| Example |
| |
 |
| |
The above example was generated by the following APL+Win Objects code: |
'ff'Świ'*Create' 'TForm5'('*caption' 'TRichEdit5 Example')
'ff'Świ'*.re1.Create' 'TRichEdit5'('wherelc'Đ Đ 200 490)('attach'1 2 3 4)('*text'(,(100 80˝'APL is the best language '),Śtcnl))
'ff'Świ'*.ok.Create' 'TOKButton5'('wherelc' '=' '>' Đ Đ)('attach'3 2 3 2)
'ff'Świ'Redim'
(›'ff')Świ¨'DemoShow' 'SessionFocus'
'ff'Świ'.re1.Find' 'APL'
|
| |
| Description Inheritance Example Properties Methods |
| |
| Properties |
| |
|
| bold |
Description: Get or Set the selected text bold state
Syntax: {boolean„'} 'obj' Świ 'bold' {boolean}
boolean: 1=set text to bold 0=set text to normal
Example:
'ff.re1' Świ 'bold'1 |
| class |
Description: Return current object class
Syntax: class„'obj' Świ 'class' |
| font |
Description: Defines the font for the whole text
Syntax: {font„'} 'obj' Świ 'font' {font{fontsize{fontstyle{fontcharset}}}}
font: a font name
fontsize: a size expressed in points
fontstyle: sum of:
Pitch: 0=Default; 32=Fixed pitch; 64=Variable pitch
Family: 0=Normal; 128=Roman; 256=Swiss; 384=Modern; 512=Script; 640=Decorative
fontcharset: 'ansi' (default), 'oem', 'symbol' or 'default'
Example:
'ff.re1' Świ 'font' 'MS Sans Serif'
'ff.re1' Świ 'font' 'Helvetica'18
'ff.re1' Świ 'font' 'APLFONT'14(32+128) 'symbol' |
| help |
Example:
0 0˝'ff' Świ '*Create' 'TForm5' ('*caption' 'TRichEdit5 Example')
0 0˝'ff' Świ '*.re1.Create' 'TRichEdit5' ('wherelc'Đ Đ 200 490) ('attach'1 2 3 4) ('*text' (,(100 80˝'APL is the best language '),Śtcnl))
0 0˝'ff' Świ '*.ok.Create' 'TOKButton5' ('wherelc' '=' '>' Đ Đ) ('attach'3 2 3 2)
0 0˝'ff' Świ 'Redim'
0 0˝(›'ff')Świ¨'DemoShow' 'SessionFocus'
0 0˝'ff' Świ '.re1.Find' 'APL' |
| italic |
Description: Get or Set the selected text italic state
Syntax: {boolean„'} 'obj' Świ 'italic' {boolean}
boolean: 1=set text to italics 0=set text to normal
Example:
'ff.re1' Świ 'italic'1 |
| protected |
Description: Get or Set the selected text protected state
Syntax: {boolean„'} 'obj' Świ 'protected' {boolean}
boolean: 1=set text to protected 0=set text to normal
Example:
'ff.re1' Świ 'protected'1 |
| strikeout |
Description: Get or Set the selected text strikeout state
Syntax: {boolean„'} 'obj' Świ 'strikeout' {boolean}
boolean: 1=set text to strikeout 0=set text to normal
Example:
'ff.re1' Świ 'strikeout'1 |
 |
| syntaxcolor |
Description: Get or Set the type of Syntax coloring required
Syntax: {type„'} 'obj' Świ 'syntaxcolor' {type}
type: type of syntax coloring requested (one of: 'html' 'css' or '' for no syntax coloring)
Example:
'ff.re1' Świ 'syntaxcolor' 'html' |
 |
| text |
Description: Get or Set the text property and saves previous text if set
Syntax: {text„'} 'obj' Świ 'text' {text}
text: text installed in control
Example:
'ff.re1' Świ 'text'txt |
| underline |
Description: Get or Set the selected text underline state
Syntax: {boolean„'} 'obj' Świ 'underline' {boolean}
boolean: 1=underline selected text 0=set text to normal
Example:
'ff.re1' Świ 'underline'1 |
|
| Description Inheritance Example Properties Methods |
| |
| Methods |
| |
|
| APLFont |
Description: Set the whole text font to the APLPLUS font
Syntax: 'obj' Świ 'APLFont' {size} © ELE11jul05 size added
size: APL font size in points © ELE11jul05 added
Example:
'ff.re1' Świ 'APLFont' |
| DyalogAPLFont |
Description: Set the whole text font to the Dyalog APL font
Syntax: 'obj' Świ 'DyalogAPLFont'
Example:
'ff.re1' Świ 'DyalogAPLFont' |
| Find |
Description: Find a substring and show all occurences with a different color
Syntax: 'obj' Świ 'Find'string color syntacticsearch casesensitivity
string: sub-string to be found
color: a 1- or 3-element color
syntacticsearch: boolean (1 is search should be syntactic)
casesensitivity: boolean (1 is search should be case sensitive)
Example:
'ff.re1' Świ 'Find' 'APL' 1 1 |
| MoveTo |
Description: Moves the caret to a new position
Syntax: 'obj' Świ 'MoveTo'position{nb_of_chars}
Example:
'ff.re1' Świ 'MoveTo'200 50 |
| MoveToEnd |
Description: Moves the caret to the end of the text
Syntax: 'obj' Świ 'MoveToEnd'
Example:
'ff.re1' Świ 'MoveToEnd' |
| MoveToEnd |
Description: Moves the caret to the end of the text
Syntax: 'obj' Świ 'MoveToEnd'
Example:
'ff.re1' Świ 'MoveToEnd' |
| New |
Description: Create a new instance of TRichEdit5
Example:
'obj' Świ '*Create' 'TRichEdit5'
|
| SelectAll |
Description: Selected the whole RichEdit control text
Syntax: 'obj' Świ 'SelectAll'
Example:
'ff.re1' Świ 'SelectAll' |
| SelectNone |
Description: Unselect any selected text
Syntax: 'obj' Świ 'SelectNone'
Example:
'ff.re1' Świ 'SelectNone' |
| SelectToEnd |
Description: Selects text from current cursor position to end of text
Syntax: 'obj' Świ 'SelectToEnd'
Example:
'ff.re1' Świ 'SelectToEnd' |
 |
| SyntaxColor |
Description: Installs specified text in the control and syntax color it
Syntax: 'obj' Świ 'SyntaxColor'text{info}
text: an HTML text or a CSS text
info: optional name of an instance of a TInfo5 object
Example:
'ff.edHtml' Świ 'SyntaxColor'text'info' |
|
| Description Inheritance Example Properties Methods |
| |
|