TWPPreviewDlg Component
Properties Methods Events

Unit
WPPrvFrm

Declaration
TWPPreviewDlg = class(TWPCustomAttrDlg)

Hierarchy
System.Classes.TComponent <--TWPCustomAttrDlg <--TWPPreviewDlg

Subclasses
None

Description
This dialog can be used to display a preview of the text in a TWPRichText or TWPCustomRTFEdit component. Simply assign the property 'EditBox'. If the editor set the property WordWrap to TRUE the preview dialog will create a temporary editor and assign the text.
You can use the event OnPrepareDlg to modify the dialog on the fly, for example change the images (ImageList1) or set hints.

Please place a call to WPPreviewDlg1.Close; in the OnClose event of the form which calls the preview dialog to avoid a GPF when closing that form while the dialog is still open (it can be non-modal!)

Introduced Properties
AllowEditMode 
Caption 
DefaultHeight 
DefaultLeft 
DefaultPosition 
DefaultTop 
DefaultWidth 
DisabledButtons 
EditBox 
MinHeight 
MinWidth 
Modal 
OnPrintClick 
OnSaveClick 
SinglePageMode 
ViewOptions 
WindowState 
ZoomMode 

Introduced Methods
Close 
Create 
CurrentZooming 
Destroy 
Execute 

Introduced Events
OnPrepareDlg 


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