<< Click to Display Table of Contents >> Navigation: Programming > Installation > C++Builder Notes > Example: Create dynamic TWPCustomRTFEdit |
TWPCustomRtfEdit *DynRTFText;
DynRTFText = new TWPCustomRtfEdit();
DynRTFText->_MakeDynamic();
DynRTFText->Clear();
DynRTFText->Header->SetPageWH(WPCentimeterToTwips(21),
WPCentimeterToTwips(29.7),
WPCentimeterToTwips(2), //left Margin
WPCentimeterToTwips(2), //right Margin
WPCentimeterToTwips(2), //top Margin
WPCentimeterToTwips(2)); //Bottom Margin
DynRTFText->CheckHasBody();
DynRTFText->InputString("Some Text\f");