| |

VerySource

 Forgot password?
 Register
Search
View: 2869|Reply: 20

Master: Multi-line strings, how to achieve in DC like Word can let different characters display with different colors /

[Copy link]

2

Threads

18

Posts

16.00

Credits

Newbie

Rank: 1

Credits
16.00

 China

Post time: 2020-1-22 21:40:01
| Show all posts |Read mode
Textout can only display one line, drawText multi-line characters, and only one color / font?
Reply

Use magic Report

0

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-2-6 15:15:01
| Show all posts
Can't draw more times?
Reply

Use magic Report

0

Threads

25

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-2-6 16:45:01
| Show all posts
Consider inserting some control characters in the string to achieve your desired effect.
Reply

Use magic Report

2

Threads

18

Posts

16.00

Credits

Newbie

Rank: 1

Credits
16.00

 China

 Author| Post time: 2020-2-7 15:15:01
| Show all posts
Draw a few more times, and all the characters become new colors?
Reply

Use magic Report

0

Threads

30

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-2-7 21:30:01
| Show all posts
CRichEditCtrl is easy to implement
Reply

Use magic Report

0

Threads

59

Posts

43.00

Credits

Newbie

Rank: 1

Credits
43.00

 China

Post time: 2020-2-8 15:00:01
| Show all posts
These texts have a special format, such as html. After parsing the format, the text and formatting are drawn according to the parameters of the label.
Reply

Use magic Report

2

Threads

18

Posts

16.00

Credits

Newbie

Rank: 1

Credits
16.00

 China

 Author| Post time: 2020-3-1 15:00:01
| Show all posts
If there is no RichEditCtrl, is there any good way?

to2511718: What you said is the way to display in IE server? What good way do I want to display this effect in the MFCGridCtrl Cell?
Reply

Use magic Report

0

Threads

8

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-5-25 20:30:02
| Show all posts
I'm afraid you have to customize the file format, parse and display
Reply

Use magic Report

2

Threads

18

Posts

16.00

Credits

Newbie

Rank: 1

Credits
16.00

 China

 Author| Post time: 2020-5-28 07:45:01
| Show all posts
Upstairs, how to define carriage return / line feed? (Want to achieve word wrapping)
Reply

Use magic Report

0

Threads

22

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-6-2 23:45:01
| Show all posts
Use CFont and CLogFont one by one
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list