Hi all, i'm testing the wrap_content with the next code:
Dim lbl1 As Label
Dim lbl2 As Label
lbl1.Initialize("")
lbl2.Initialize("")
lbl1.Text = "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wsssssssssssssssssssssssssdrfhssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wsssssssssssssssssssssssssdrfhssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF
Dim cnv As Canvas
cnv.Initialize(Activity)
Dim he As Int
lbl1.TextSize = 12dip
lbl1.TextColor = Colors.Yellow
he = cnv.MeasureStringHeight(lbl1.Text,Typeface.DEFAULT,12dip)
'ToastMessageShow(he,True)
Activity.AddView(lbl1,50dip,50dip,200dip,-2)
Dim hei As Int
hei = hei + 50dip + lbl1.Height
lbl2.Text = "holaaa"
lbl2.TextColor = Colors.Red
lbl2.TextSize = 12dip
Dim r As Reflector
r.Target = lbl1
Dim a As Int
DoEvents
a = r.RunMethod("getHeight")
ToastMessageShow(a,True)
Activity.AddView(lbl2,50dip,(50dip+a),200dip,40Dip)
i'm seeing the height of the field and i get max 302, that is lower than the real height.
In other program (not for testing) i get max 112 of height, and the height of field should be much more, any idea?
Dim lbl1 As Label
Dim lbl2 As Label
lbl1.Initialize("")
lbl2.Initialize("")
lbl1.Text = "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wsssssssssssssssssssssssssdrfhssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wsssssssssssssssssssssssssdrfhssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF & "wssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" & CRLF
Dim cnv As Canvas
cnv.Initialize(Activity)
Dim he As Int
lbl1.TextSize = 12dip
lbl1.TextColor = Colors.Yellow
he = cnv.MeasureStringHeight(lbl1.Text,Typeface.DEFAULT,12dip)
'ToastMessageShow(he,True)
Activity.AddView(lbl1,50dip,50dip,200dip,-2)
Dim hei As Int
hei = hei + 50dip + lbl1.Height
lbl2.Text = "holaaa"
lbl2.TextColor = Colors.Red
lbl2.TextSize = 12dip
Dim r As Reflector
r.Target = lbl1
Dim a As Int
DoEvents
a = r.RunMethod("getHeight")
ToastMessageShow(a,True)
Activity.AddView(lbl2,50dip,(50dip+a),200dip,40Dip)
i'm seeing the height of the field and i get max 302, that is lower than the real height.
In other program (not for testing) i get max 112 of height, and the height of field should be much more, any idea?