break lines inside the grid
Moderator: Rathinagiri
break lines inside the grid
hello, team I need to break lines inside the grid I'm using chr (13) + chr (10) or HB_OsNewLine () but the text is all in one line
- AUGE_OHR
- Posts: 2093
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: break lines inside the grid
hi,
you need Space for 2 or more Lines but MeasureItem give only Size for 1 line.
a "Trick" is to overule MeasureItem with bigger Font or a big Image to get Space for 2 or more lines.
but than all Cell are bigger ...
---
have a look at c:\hmg.3.4.4\SAMPLES\Controls\Grid\Grid_ImageIndex\
it use 24 x 24 Image which i have resize to 48 x 48
now i can use up to 3 line in a Cell attach new 48 x 48 Image
you need Space for 2 or more Lines but MeasureItem give only Size for 1 line.
a "Trick" is to overule MeasureItem with bigger Font or a big Image to get Space for 2 or more lines.
but than all Cell are bigger ...
---
have a look at c:\hmg.3.4.4\SAMPLES\Controls\Grid\Grid_ImageIndex\
it use 24 x 24 Image which i have resize to 48 x 48
now i can use up to 3 line in a Cell attach new 48 x 48 Image
have fun
Jimmy
Jimmy