//--------------------------------------------------------------------------- #include #pragma hdrstop #include "entryprvfrm.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TentryPreviewForm *entryPreviewForm; //--------------------------------------------------------------------------- __fastcall TentryPreviewForm::TentryPreviewForm(TComponent* Owner) : TForm(Owner) { pvrtf = new TRxRichEditX(this); pvrtf->Parent = previewPanel; pvrtf->Align = alClient; pvrtf->ScrollBars = ssVertical; pvrtf->ReadOnly = true; } //--------------------------------------------------------------------------- void TentryPreviewForm::setEntryText(const char *buf, SWModule *modForFormatting) { pvrtf->fillWithRTFString(modForFormatting, buf); } void __fastcall TentryPreviewForm::focusNoteContextBtnClick(TObject *Sender) { Form1->RestoreState(&modState); } //---------------------------------------------------------------------------