TWPRichText Component
Properties Events

Unit
WPCTRRich

Declaration
TWPRichText = class(TWPCustomRichText)

Hierarchy
TCustomControl <--TWPCustomRTFControl <--TWPCustomRtfEdit <--TWPCustomRichText <--TWPRichText

Subclasses
None

Description
This is the class which is usually used as an editor. It inherits most of its functionality from the class TWPCustomRtfEdit but also adds useful functions.
Much of the introduced methods have been created to either support the graphic user interface or to make it easier to upgrade projects which used to work with a previous version of WPTools.
Note
If you only need an invisible 'working horse' to process the formatted text, especially within a multi threaded environment, we recommend to create an instance of the TWPCustomRtfEdit class in code (using 'CreateDynamic') and avoid the linking of the unit WPCtrRich. This can help to reduce the application file size.


Introduced Properties
AcceptFiles 
AcceptFilesOptions 
ActionList 
AllowMultiView 
AutomaticTextAttr 
AutoZoom 
BookmarkTextAttr 
BorderStyle 
ClickableCodes 
ClipboardOptions 
ColorDesktop 
DefaultIOFormat 
EditBoxModes 
EditOptions 
EditOptionsEx 
FieldObjectTextAttr 
FormatOptions 
FormatOptionsEx 
GraphicPopupMenu 
Header 
HiddenTextAttr 
HyperLinkCursor 
HyperlinkTextAttr 
InsertPointAttr 
LayoutMode The central property to change the way the engine displays the pages.
OnCustomLinePaintAfter 
OnCustomLinePaintBefore 
OneClickHyperlink 
PageColumns 
PaperColor 
PrintParameter 
ProtectedProp 
ProtectedTextAttr 
Readonly 
Resizing 
RTFText 
RTFVariables 
ScrollBars 
SPANObjectTextAttr 
SpellCheckStrategie 
SpellIgnoredForObj 
TextObjectCursor 
Transparent 
ViewOptions 
VRuler 
WantReturns 
WantTabs 
WordWrap 
WPGutter 
WPRuler 
WPToolBar 
WriteObjectMode 
XBetween 
XOffset 
YBetween 
YOffset 
Zooming 

Introduced Events
AfterCompleteWordEvent 
AfterCopyToClipboard 
AfterDelayedUpdate 
AfterImageSaving 
AfterLoadText 
AfterObjectSelection 
BeforeCopyText 
BeforeCutText 
BeforeDestroyPaintPage 
BeforeDropText 
BeforeEditBoxNeedFocus 
BeforeInitializePar 
BeforeObjectSelection 
BeforeOverwriteFile 
BeforePasteImage 
BeforePasteText 
HyperLinkEvent 
OnActivateHint 
OnActivatingHotStyle 
OnCalcPageNr 
OnChange 
OnChangeCursorPos 
OnChangeLastFileName 
OnChangeSelection 
OnChangeViewMode 
OnChangeZooming 
OnCharacterAttrChange 
OnCheckProtection 
OnClear 
OnClick 
OnClickCreateHeaderFooter 
OnClickHotText 
OnClickText 
OnDblClick 
OnDeactivateHotStyle 
OnDelayedUpdate 
OnDropFile 
OnEditBoxChangeHeight 
OnEditBoxChangeWidth 
OnEditFieldFocus 
OnEditFieldGetSize 
OnEditStateChanged 
OnGetAttributeColor 
OnGetPageGapText 
OnGetSpecialText 
OnInitializedRTFData This event can be used to assign the same TWPRTFProps object to different editors.
OnInitializeRTFDataObject 
OnLeaveRTFDataBlock 
OnMailMergeGetText This event is triggered when the MergeText or MergeEnumFields procedure is used.
You can use the provided parameter inspname to select the required result string for the property Contents.StringValue.

Contents.StringValue := Table1.FieldByName(inspname).AsString;
OnMeasureTextPage 
OnMouseDownWord 
OnNewRTFDataBlock 
OnOpenDialog 
OnPaintExternPage 
OnPaintPageHint 
OnPaintWatermark 
OnPrepareImageforSaving 
OnPrepareParForPaint 
OnQueryDrag 
OnRequestHTTPImage 
OnRequestHTTPString 
OnRequestStyle 
OnResize 
OnSetupPrinterEvent 
OnTestForLinkEvent 
OnTextNotFound 
OnTextObjectClick 
OnTextObjectDblClick 
OnTextObjectMouseDown 
OnTextObjectMouseMove 
OnTextObjectMouseUp 
OnTextObjectMove 
OnTextObjectPaint 
OnTextObjGetTextEx 
OnUndoStateChanged 
OnUpdateExternScrollbar 
OnWorkOnTextChanged 


Copyright (C) by WPCUBED GmbH - Munich
http://www.wpcubed.com