//--------------------------------------------------------------------------- #include #pragma hdrstop #include "rtfhintfrm.h" #include #include #include #include "mainfrm.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TRTFHintForm *RTFHintForm; __fastcall TRTFHintForm::TRTFHintForm(TComponent* Owner) : TForm(Owner) { rtfDrawer = new TRxRichEditX(Panel1); rtfDrawer->Parent = Panel1; rtfDrawer->Align = alTop; // I changed this to white because our defual now needs to be white so you can use it for controls like the search window with little extra formatting info. rtfDrawer->Color = 14680063; //TColor(0xB4CDBB); rtfDrawer->BorderStyle = bsNone; rtfDrawer->Text = "yoyo"; rtfDrawer->Name = "rtfDrawer"; rtfDrawer->Enabled = true; rtfDrawer->Visible = true; rtfDrawer->DoubleBuffered = false; searchListDrawer = new TRxRichEditX(Panel1); searchListDrawer->Parent = Panel1; searchListDrawer->Align = alBottom; searchListDrawer->Color = clWindow; //TColor(0xB4CDBB); searchListDrawer->BorderStyle = bsNone; searchListDrawer->Text = "yoyo"; searchListDrawer->Name = "searchListDrawer"; searchListDrawer->Enabled = true; searchListDrawer->Visible = true; searchListDrawer->DoubleBuffered = false; } //--------------------------------------------------------------------------- void __fastcall TRTFHintForm::Button1Click(TObject *Sender) { Clipboard()->Assign(this->GetFormImage()); } //---------------------------------------------------------------------------