<< Click to Display Table of Contents >> Navigation: Programming > Installation > C++Builder Notes > Create editor in code in C++ |
If you create an editor in code, not in the IDE,
you will have to add a call to _MakeEditable() - otherwise the editor does not disply the text.
(Tested with C++Builder XE8)
void __fastcall TForm2::FormCreate(TObject *Sender)
{
WPRichText2 = new TMyWPRichText();
WPRichText2->SetBounds(550,100,500,400);
WPRichText2->Parent = this;
WPRichText2->_MakeEditable();
WPRichText2->Loaded();
WPRichText2->CheckHasBody();
WPRichText2->JustATestProc();
WPRichText2->WPToolBar = WPToolbar1;
}