@...RICHEDITBOX
DEFINE RICHEDITBOX 
  

Creates a RichEditBox control.

SYNTAX

Standard Window:

@ <nRow>,<nCol> RICHEDITBOX <ControlName>
[ OF | PARENT> <
ParentWindowName> ]
[ WIDTH <
nWidth> ]
[ HEIGHT <
nHeight> ]
[ FILE <
file> ]
[ VALUE <
cValue> ]
[ READONLY ]
[ FONT <
cFontName> ]
[ SIZE <
nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <
cToolTip> ]
[ BACKCOLOR <
aBackColor> ]
[ FONTCOLOR <
aFontColor> ]
[ MAXLENGTH <
nMaxLength> ]
[ ON GOTFOCUS <
OnGotFocusProcedur> | <bBlock> ]
[ ON CHANGE <
OnChangeProcedure> | <bBlock> ]
[ ON SELECT <
OnSelectProcedure> | <bBlock> ]
[ ON LOSTFOCUS <
OnLostFocusProcedur> | <bBlock> ]
[ ON VSCROLL <
OnVScrollProcedur> | <bBlock> ]
[ HELPID <
nHelpId> ]
[ INVISIBLE ]
[ NOTABSTOP ]
[ PLAINTEXT]
[ NOHSCROLL]
[ NOVSCROLL]

FIELD VERSION

@ <nRow>,<nCol> RICHEDITBOX <ControlName>
[ OF | PARENT> <
ParentWindowName> ]
[ WIDTH <
nWidth> ]
[ HEIGHT <
nHeight> ]
FIELD <
file>
[ VALUE <
cValue> ]
[ READONLY ]
[ FONT <
cFontName> ]
[ SIZE <
nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <
cToolTip> ]
[ BACKCOLOR <
aBackColor> ]
[ FONTCOLOR <
aFontColor> ]
[ MAXLENGTH <
nMaxLength> ]
[ ON GOTFOCUS <
OnGotFocusProcedur> | <bBlock> ]
[ ON CHANGE <
OnChangeProcedure> | <bBlock> ]
[ ON SELECT <
OnSelectProcedure> | <bBlock> ]
[ ON LOSTFOCUS <
OnLostFocusProcedur> | <bBlock> ]
[ ON VSCROLL <
OnVScrollProcedur> | <bBlock> ]
[ HELPID <
nHelpId> ]
[ INVISIBLE ]
[ NOTABSTOP ]
[ PLAINTEXT]
[ NOHSCROLL]
[ NOVSCROLL]

SPLITBOX VERSION

RICHEDITBOX <ControlName>
[ OF | PARENT> <
ParentWindowName> ]
[ WIDTH <
nWidth> ]
[ HEIGHT <
nHeight> ]
[ FILE <
file> ]
[ VALUE <
cValue> ]
[ READONLY ]
[ FONT <
cFontName> ]
[ SIZE <
nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <
cToolTip> ]
[ BACKCOLOR <
aBackColor> ]
[ FONTCOLOR <
aFontColor> ]
[ MAXLENGTH <
nMaxLength> ]
[ ON GOTFOCUS <
OnGotFocusProcedur> | <bBlock> ]
[ ON CHANGE <
OnChangeProcedure> | <bBlock> ]
[ ON SELECT <
OnSelectProcedure> | <bBlock> ]
[ ON LOSTFOCUS <
OnLostFocusProcedur> | <bBlock> ]
[ ON VSCROLL <
OnVScrollProcedur> | <bBlock> ]
[ HELPID <
nHelpId> ]
[ BREAK ]
[ INVISIBLE ]
[ NOTABSTOP ]
[ PLAINTEXT]
[ NOHSCROLL]
[ NOVSCROLL]

Alternate Syntax:

DEFINE RICHEDITBOX <ControlName>

[ ID <nId> ]
[ PARENT <
ParentWindowName> ]
COL <
nCol>
ROW <
nRow>
[ WIDTH <
nWidth> ]
[ HEIGHT <
nHeight> ]
[ FILE <
file> ]
[ VALUE <
cValue> ]
[ READONLY ]
[ FONTNAME <
cFontname>
[ FONTSIZE <
nFontsize> ]
[ FONTBOLD < .T. | .F.> ]
[ FONTITALIC < .T. | .F.> ]
[ FONTUNDERLINE < .T. | .F.> ]
[ FONTSTRIKEOUT < .T. | .F.> ]
[ TOOLTIP <
cToolTip> ]
[ BACKCOLOR <
aBackColor> ]
[ FONTCOLOR <
aFontColor> ]
[ MAXLENGTH <
nMaxLength> ]
[ ONGOTFOCUS <
OnGotFocusProcedur> | <bBlock> ]
[ ONCHANGE <
OnChangeProcedure> | <bBlock> ]
[ ONSELECT <
OnSelectProcedure> | <bBlock> ]
[ ONLOSTFOCUS <
OnLostFocusProcedur> | <bBlock> ]
[ ONVSCROLL <
OnVScrollProcedur> | <bBlock> ]
[ HELPID <
nHelpId> ]
[ INVISIBLE < .T. | .F.> ]
[ NOTABSTOP < .T. | .F.> ]
[ PLAINTEXT < .T. | .F.> ]
[ NOHSCROLL
BAR < .T. | .F.> ]
[ NOVSCROLLBAR< .T. | .F.> ]

END RICHEDITBOX

PROPERTIES:

·   Value
Set / Gets RichEditBox value.
·   Enabled
Set / Gets enabled state of a RichEditBox control
·    Visible
Set / Gets visible a RichEditBox control.
·    Row
Set / Gets row position of a RichEditBox control.
·    Col
Set / Gets column position of a RichEditBox control.
·    Width
Set / Gets width of a RichEditBox control.
·   Height
Set / Gets height of a RichEditBox control.
·   FontName
Set / Gets RichEditBox control's font name.
·   FontSize
Set / Gets RichEditBox control's font size.
·   FontBold
Set / Gets RichEditBox control's font bold property
·   FontItalic
Set / Gets RichEditBox control's font italic property
Set / Gets RichEditBox control's font underline property
Set / Gets RichEditBox control's font strikeout property
·   FontColor
Set / Gets the foreground color for text within the RichEditBox
·   BackColor
Set / Gets the background color for text within the RichEditBox
·   ToolTip
Set / Gets RichEditBox control's tooltip text.
·   Cargo
Set / Gets user property 'Cargo' for RichEditBox control
·   Name (R)
Retrieves the name of a RichEditBox control.
·   Parent (D)
Set the name as character identifier of the parent window.
·   HelpId (D)
Set the numeric help topic identifier of the control.
·   AutoFont
Set /Gets autofont property, if this flag is set, the RichEditBox automatically changes fonts when the user explicitly changes to a different keyboard layout.
·   ReadOnly (D)
Set the RichEditBox control's readonly property
·   MaxLength (D))
 
·   NoTabStop (D)
Sets whether an element behavior can't receive focus and participate in the tabbing sequence
·   RichValue
 
·   RichValue(nType)
 
·   Break (D)
Control passes to the statement that follows the terminated statement.

D: Available at control definition only
R: Read-Only

Values of nType:

1
RICHVALUE_TEXT
ANSI characters only
2
RICHVALUE_RTF
RTF format *** DEFAULT ***
3
RICHVALUE_UNICODE_TEXT
Unicode text, UTF-16LE
4
RICHVALUE_UTF8_TEXT
Unicode text, UTF-8
5
RICHVALUE_UTF8_RTF
UTF-8 RTF format
6
RICHVALUE_UTF7_TEXT
Unicode text, UTF-7


EVENTS:

·   OnGotFocus
An action to be performed when getting the focus
·   OnChange
An action to be performed when generic changing of the control
An action to be performed when losing the focus.
·   OnScroll
 

METHODS:

·   Show
Shows a RichEditBox control
·   Hide
Hides a RichEditBox control
·   SetFocus
Gives the focus to a RichEditBox control
·   Release
Releases a RichEditBox control from memory
·   Refresh
Repaint a RichEditBox control
·   Save
Save data for EditBox RichEditBox
·   SaveAs
Save a RichEditBox control as BitMap file.