| |

VerySource

 Forgot password?
 Register
Search
View: 797|Reply: 5

StringGrid

[Copy link]

2

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-21 16:20:01
| Show all posts |Read mode
How can I make the content in the StringGrid wrap and auto-center
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-2-8 17:45:02
| Show all posts
Without this feature, you can only draw by yourself

drawtext api function. Search it, a lot.
Reply

Use magic Report

2

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-2-18 23:00:01
| Show all posts
I know without this feature, I do n’t know who has done this, I will only do the center
Reply

Use magic Report

0

Threads

16

Posts

16.00

Credits

Newbie

Rank: 1

Credits
16.00

 China

Post time: 2020-6-23 15:30:02
| Show all posts
The first floor does not say the code, the fourth parameter limit area in drawtext, you calculate this and it becomes
Reply

Use magic Report

2

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-7-8 06:45:02
| Show all posts
Can someone upstairs tell me more specifically?
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-20 20:00:01
| Show all posts
Draw in OnDrawCell event
The parameter Rect in the event method is the restricted area
StringGrid1->Canvas->TextOutA(...) or others, please try it yourself

May need to be set: StringGrid1->DefaultDrawing = false
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