ok risolto
private Sub CLW_Write(Text As String,Color As Int)
Dim strUtil As StringUtils
Dim CLWItem As CLVItem
Dim CLWlbl As Label
CLWItemsCount = CLWItemsCount+1
If Text <> "" Then
clwResult.DefaultTextColor = Color
clwResult.AddTextItem(Text,"")
Else
clwResult.AddTextItem(Text,"")
End If
CLWItem = clwResult.GetRawListItem(CLWItemsCount-1)
For Each lbl As B4XView In CLWItem.Panel.GetAllViewsRecursive
If lbl Is Label Then
CLWlbl = lbl
Exit
End If
Next
clwResult.ResizeItem(CLWItemsCount-1,strUtil.MeasureMultilineTextHeight(CLWlbl,CLWlbl.Text))
clwResult.JumpToItem(CLWItemsCount-1)
End Sub