| |

VerySource

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

StringGrid

[Copy link]

2

Threads

5

Posts

5

Credits

Newbie

Rank: 1

Credits
5

 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

2

Posts

3

Credits

Newbie

Rank: 1

Credits
3

 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

Credits

Newbie

Rank: 1

Credits
5

 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

13

Posts

13

Credits

Newbie

Rank: 1

Credits
13

 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

Credits

Newbie

Rank: 1

Credits
5

 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

Credits

Newbie

Rank: 1

Credits
2

 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-2020|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list