TWPPreview Component
Properties Methods Events

Unit
WPCTRMemo

Declaration
TWPPreview = class(TWPCustomRtfEdit)

Hierarchy
TWPCustomRTFControl <--TWPCustomRtfEdit <--TWPPreview

Subclasses
None

Description
This class inherits from the TWPCustomRtfEdit class which is also used to build an editor for text.
The difference to the latter class the TWPPreview has been specially preconfigurated to view text which is displayed also in an TWPCustomRtfEdit control. It cannot be used without any TWPCustomRtfEdit control attached to it.

The preview is not automatically updated when text is added to the editor. You need to add some code to the OnDelayedUpdate event:
    procedure TForm1.WPRichText1DelayedUpdate(Sender: TObject;
    var WPUPD_Code: Integer; Param: Integer);
    begin
    if WPUPD_Code=WPUPD_AFTER_REORDERPAGES then
    WPPreview1.Refresh;
    end;


Introduced Properties
AutoZoom 
BorderStyle 
ClickableCodes 
ColorDesktop 
Columns 
Configuration 
HyperLinkEvent 
LayoutMode The central property to change the way the engine displays the pages.
OnCustomLinePaintAfter 
OnCustomLinePaintBefore 
OneClickHyperlink 
OnMouseMove 
PageColumns 
Pagenumber 
PaperColor 
Rows 
ScrollBars 
ShowPagenumber 
SinglePageMode 
Transparent 
ViewOptions 
ViewOptionsEx 
WPRichText 
XBetween 
XOffset 
YBetween 
YOffset 
Zooming 

Introduced Methods
BeforeDestruction 
Create 
Destroy 
Loaded 
Paint 
Refresh 

Introduced Events
OnActivateHint 
OnActivatingHotStyle 
OnCalcPageNr 
OnChangeViewMode 
OnChangeZooming 
OnClick 
OnClickHotText 
OnClickPage 
OnClickText 
OnDblClick 
OnDeactivateHotStyle 
OnGetAttributeColor 
OnPaintDesktopBackground 
OnPaintExternPage 
OnPaintWatermark 
OnResize 
OnTextObjectClick Error in DocComment
OnTextObjectMouseDown 
OnTextObjectMouseMove 
OnTextObjectMouseUp 
OnTextObjectPaint 
OnUpdateExternScrollbar 


WPCubed