TWPPreview Component
Properties Methods Events

Unit
WPCTRMemo

Declaration
TWPPreview = class(TWPCustomRtfEdit)

Hierarchy
TCustomControl <--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
Align 
Anchors 
AutoZoom 
BorderStyle 
ClickableCodes 
ColorDesktop 
Columns 
Configuration 
Constraints 
Ctl3D 
DragCursor 
DragMode 
Enabled 
HyperLinkEvent 
LayoutMode 
OnChangeViewMode 
OnChangeZooming 
OnCustomLinePaintAfter 
OnCustomLinePaintBefore 
OnDragDrop 
OnDragOver 
OneClickHyperlink 
OnEndDrag 
OnEnter 
OnExit 
OnKeyDown 
OnKeyPress 
OnKeyUp 
OnMouseDown 
OnMouseMove 
OnMouseUp 
OnPaint 
OnResize 
PageColumns 
Pagenumber 
PaperColor 
ParentColor 
ParentShowHint 
PopupMenu 
Rows 
ScrollBars 
ShowHint 
ShowPagenumber 
SinglePageMode 
TabOrder 
TabStop 
Transparent 
ViewOptions 
ViewOptionsEx 
Visible 
WPRichText 
XBetween 
XOffset 
YBetween 
YOffset 
Zooming 

Introduced Methods
BeforeDestruction 
Create 
CreateWnd 
Destroy 
DestroyWnd 
Loaded 
Paint 
Refresh 

Introduced Events
AfterPaintDesktopBackground 
OnActivateHint 
OnActivatingHotStyle 
OnCalcPageNr 
OnClick 
OnClickHotText 
OnClickPage 
OnClickText 
OnDblClick 
OnDeactivateHotStyle 
OnGetAttributeColor 
OnPaintDesktopBackground 
OnPaintExternPage 
OnPaintWatermark 
OnTextObjectClick 
OnTextObjectMouseDown 
OnTextObjectMouseMove 
OnTextObjectMouseUp 
OnTextObjectPaint 
OnUpdateExternScrollbar 


WPCubed GmbH : http://www.wpcubed.com