Home > Back-end >  Richedit how to implement this line effect, the master for help
Richedit how to implement this line effect, the master for help

Time:10-03

, masters, RICHedit how to implement the above the line in the graph effect, on the words underline not achieve them,

CodePudding user response:

Richedit can underline, but no conduct line,

CodePudding user response:

Find a solution,

CodePudding user response:

With its Canvas painting, calculating the height of the current font +/2 + on each row spacing distance of each line Y position

CodePudding user response:

Every change a drawing? Which is not very trouble? And line height will change along with the font size,

CodePudding user response:

Will determine the RichEdit, only heavy, not very troublesome, you as long as when the content of change, or change the font size, and redraw

CodePudding user response:

How to redraw? Give the code, thank you!

CodePudding user response:

"[Word painting line 5 big skill] 1. Input three"=", press enter, is a double line 2. Input the three "~", press enter, is a wavy line 3. The three input "*" enter, is a dotted line 4. Input three "-", press enter, is a straight line 5. Input three "#", press enter, is a interlaced line, you give it a try, look at the picture have the result! To friends!" And word of this effect in the richedit can achieve?

CodePudding user response:

Help help!
  • Related