Android Question B4Xtable col width auto adjust

Mostez

Well-Known Member
Licensed User
Longtime User
I want to auto adjust col width in B4Xtable to fit cell contents or col name whichever wider, how to do that?
TIA
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
 
Upvote 0

Mostez

Well-Known Member
Licensed User
Longtime User
B4A underlined this line with an error label 'Unknown member: measuretext '
B4A version: 10.50
B4X:
MaxWidth = Max(MaxWidth, cvs.MeasureText(txt, lbl.Font).Width + 10dip)
 
Upvote 0
Top