Page 1 of 1

RVE Border Color

Posted: Wed Apr 26, 2006 5:26 am
by smot22
Hi

How can I change the RVE border color?
Is there any property to do so?

Posted: Wed Apr 26, 2006 9:27 pm
by smot22
*push*

Posted: Thu Apr 27, 2006 10:25 am
by Pieter E.
Hi,

You could try this (C++):

Code: Select all

void __fastcall TForm1::Button1Click(TObject *Sender)
{
  if( RichViewEdit1->Parent->InheritsFrom(__classid(TForm)))
        {
          RichViewEdit1->BorderStyle = bsNone;
          ((TForm *)RichViewEdit1->Parent)->Canvas->Pen->Color = clBlack;
          ((TForm *)RichViewEdit1->Parent)->Canvas->Rectangle(TRect(RichViewEdit1->Left - 1,
            RichViewEdit1->Top - 1, RichViewEdit1->Left + RichViewEdit1->Width + 1,
            RichViewEdit1->Top + RichViewEdit1->Height + 1));
        }
}
//---------------------------------------------------------------------------
Above source sets the 'BorderStyle' of the TRichViewEdit to 'None' and draws a black rectangle.

Good luck,

Pieter E.

Posted: Thu Apr 27, 2006 6:48 pm
by Sergey Tkachenko
Yes, border cannot be modified but can be hidden.