S spiroskaras Member Licensed User Longtime User Apr 22, 2021 #1 Hi everyone.I check in designer property wrap text for a b4xtable and nothing is happening. is there a way to enable wrap text with code ?
Hi everyone.I check in designer property wrap text for a b4xtable and nothing is happening. is there a way to enable wrap text with code ?
Erel B4X founder Staff member Licensed User Longtime User Apr 22, 2021 #2 B4X: B4XTable1.MaximumRowsPerPage = 20 B4XTable1.BuildLayoutsCache(B4XTable1.MaximumRowsPerPage) B4XTable1.RowHeight = 50dip SetWrapText(NameColumn) 'for each relevant column Upvote 0
B4X: B4XTable1.MaximumRowsPerPage = 20 B4XTable1.BuildLayoutsCache(B4XTable1.MaximumRowsPerPage) B4XTable1.RowHeight = 50dip SetWrapText(NameColumn) 'for each relevant column
Erel B4X founder Staff member Licensed User Longtime User Apr 22, 2021 #4 I've missed the actual sub: B4X: Private Sub SetWrapText(Col As B4XTableColumn) For i = 1 To Col.CellsLayouts.Size - 1 Dim p As B4XView = Col.CellsLayouts.Get(i) Dim lbl As Label = p.GetView(Col.LabelIndex) lbl.WrapText = True Next End Sub Upvote 0
I've missed the actual sub: B4X: Private Sub SetWrapText(Col As B4XTableColumn) For i = 1 To Col.CellsLayouts.Size - 1 Dim p As B4XView = Col.CellsLayouts.Get(i) Dim lbl As Label = p.GetView(Col.LabelIndex) lbl.WrapText = True Next End Sub