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.
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
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.