B4J Question B4XTable Wordwrap

BasicBert

Member
Licensed User
Longtime User
Hi All.

I picked up programming in B4A again after a few years and I have started to use B4J also.
For my current project I use B4XPages, B4XTable and SQLite.

I have searched the forums and looked at the teaching guides, but can't find the answer to the next question :

How can I make B4XTable to display a column (or cell) with wordwrap. When the contents of a cell is too long for the cell, it should not be truncated, but continue on a second line within that cell.
 

BasicBert

Member
Licensed User
Longtime User
Erel, thanks for the very quick reply.

This really helped me a lot. I had no clue how a Table internally is made up. Now it's a bit more clear, but still a lot to discover.
At first try I thought it was not working. But then I realized that the cell could be too small (in height) to fit two lines of text.
So after adapting the RowHeight a bit it worked out fine.

As a side effect I managed to improve my code for initialising the table.
 
Upvote 0

BasicBert

Member
Licensed User
Longtime User
Always more to ask....

Any way to change the columns text into Bold (or Italics, Underscore)?
Must be something like in Erel's answer, but I can't find it.
In the Visual Designer there is a Bold-field to choose, but that seems to have no effect on the contents.
 
Upvote 0

BasicBert

Member
Licensed User
Longtime User
An even quicker reply, Erel. Respect šŸ™.
Exactly what I needed. I'll have a look at the source code before asking more questions about these tables.
 
Upvote 0
Solution
Top