Home > Back-end >  RichEdit output problem
RichEdit output problem

Time:10-23

How to turn the inside of the RichEdit content, the output to the canvas, the same format;

CodePudding user response:

Someone you know know prawns cues

CodePudding user response:

To add some data to RichEdit first:
 RichEdit1 - & gt; SelAttributes - & gt; Color=clRed; 
RichEdit1 - & gt; Lines - & gt; Add (" aaabbbcccddd ");
RichEdit1 - & gt; SelAttributes - & gt; Color=clBlue;
RichEdit1 - & gt; Lines - & gt; Add (" aaabbbcccddd ");
RichEdit1 - & gt; SelAttributes - & gt; Color=clGreen;
RichEdit1 - & gt; Lines - & gt; Add (" aaabbbcccddd ");


Will the contents of the RichEdit mapped to the current form:
 TControlCanvas * cc=new TControlCanvas; 
Cc - & gt; The Control=RichEdit1;

TRect RCT (0, 0, RichEdit1 - & gt; Width, RichEdit1 - & gt; Height);
Canvas - & gt; CopyRect (RCT, cc, RCT);

Delete the cc.

CodePudding user response:

Thank you my experiment under the looking

CodePudding user response:

Ccrun your code I have 2 days, the output to the content of the blank canvas is out

CodePudding user response:

demon elder brother code is correct..
How do you write the code.. Post and see...

CodePudding user response:

The
reference 4 floor u010329393 reply:
ccrun your code I have 2 days, the output to the content of the blank canvas is not


Finished, it will play boondoggle,

What are you? Put your sample project compression, send me E-mail cbfans at 163 dot com

CodePudding user response:

If put the old demon of the two pieces of code will fail within a function, all be empty
  • Related