![]() 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 |
Introduced Methods |
![]() | BeforeDestruction | ![]() | |
![]() | Create | ![]() | |
![]() | CreateWnd | ![]() | |
![]() | Destroy | ![]() | |
![]() | DestroyWnd | ![]() | |
![]() | Loaded | ![]() | |
![]() | Paint | ![]() | |
![]() | Refresh | ![]() |
Introduced Events |
WPCubed GmbH : http://www.wpcubed.com |