frxRichView problems!!!

I have a problem and I don't understand why?

For frxMemoView this code works with no problems:

TfrxMemoView *Memo;
Memo = new TfrxMemoView(Page);
Memo->CreateUniqueName();
Memo->Lines->Add("nfbjkdsfnvbklsfmnbvlsfdngvlksd");
Memo->Lines->Add("nfbjkdsfnvbklsfmnbvlsfdngvlksd");
Memo->Font->Size = 14 ;
Memo->Top=5;
Memo->Left=5;
Memo->Height=20;
Memo->Width=80;

For frxRichView the fallowing code doesn't work:

TfrxRichView *staticEdit;
staticEdit =new TfrxRichView(Page);
staticEdit->CreateUniqueName();
staticEdit->RichEdit->Lines->Clear();
staticEdit->RichEdit->Lines->Add("nfbjkdsfnvbklsfmnbvlsfdngvlksd");
staticEdit->RichEdit->Lines->Add("nfbjkdsfnvbklsfmnbvlsfdngvlksd");
staticEdit->RichEdit->Font->Size = 14 ;
staticEdit->RichEdit->Top=5;
staticEdit->RichEdit->Left=5;
staticEdit->RichEdit->Height=20;
staticEdit->RichEdit->Width=60;

From my understanding both of them(frxRichView & frxMemoView) work similar.
So I don't understand why one of them shows the lines in print preview and the other doesn't.
Any ideas? Thanks.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 6:46PM
    you cannot set fint size and you must add rtf text
  • edited 6:46PM
    gordk wrote: »
    you cannot set fint size and you must add rtf text

    You can set the font, the solution is to add:

    staticEdit->Align=baClient; and it works.

    The problem is that it works only with this alignment and after that you can't modify top,left.
    Do you know why?
    Thanks.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.