break lines inside the grid

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
jairpinho
Posts: 420
Joined: Mon Jul 18, 2011 5:36 pm
Location: Rio Grande do Sul - Brasil
Contact:

break lines inside the grid

Post by jairpinho »

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
Jair Pinho
HMG ALTA REVOLUÇÃO xBASE
HMG xBASE REVOLUTION HIGH
http://www.hmgforum.com.br
User avatar
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

Post by AUGE_OHR »

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
Grid_2nd_line.jpg
Grid_2nd_line.jpg (44.95 KiB) Viewed 1260 times
attach new 48 x 48 Image
Grid_2nd_Line.zip
(9.5 KiB) Downloaded 166 times
have fun
Jimmy
Post Reply