imgsimonebiliato Well-Known Member Licensed User Longtime User Dec 18, 2012 #1 Hello, how can I set label autosize width and height? Thk
Erel B4X founder Staff member Licensed User Longtime User Dec 18, 2012 #2 You can set its width and height to -2 (WRAP_CONTENT). Upvote 0
imgsimonebiliato Well-Known Member Licensed User Longtime User Dec 18, 2012 #3 Erel said: You can set its width and height to -2 (WRAP_CONTENT). Click to expand... So I put: label.width = -2 label.height = -2 ?? Upvote 0
Erel said: You can set its width and height to -2 (WRAP_CONTENT). Click to expand... So I put: label.width = -2 label.height = -2 ??
Erel B4X founder Staff member Licensed User Longtime User Dec 19, 2012 #4 Code: Copy Sub Activity_Create(FirstTime As Boolean) Dim lbl As Label lbl.Initialize("") Activity.AddView(lbl, 10dip, 10dip, -2, -2) lbl.Text = "this is an example" & CRLF & "aabbccc" End Sub Upvote 0
Code: Copy Sub Activity_Create(FirstTime As Boolean) Dim lbl As Label lbl.Initialize("") Activity.AddView(lbl, 10dip, 10dip, -2, -2) lbl.Text = "this is an example" & CRLF & "aabbccc" End Sub
imgsimonebiliato Well-Known Member Licensed User Longtime User Dec 19, 2012 #5 Erel said: Code: Copy Sub Activity_Create(FirstTime As Boolean) Dim lbl As Label lbl.Initialize("") Activity.AddView(lbl, 10dip, 10dip, -2, -2) lbl.Text = "this is an example" & CRLF & "aabbccc" End Sub Click to expand... Many thanks! :sign0104: Upvote 0
Erel said: Code: Copy Sub Activity_Create(FirstTime As Boolean) Dim lbl As Label lbl.Initialize("") Activity.AddView(lbl, 10dip, 10dip, -2, -2) lbl.Text = "this is an example" & CRLF & "aabbccc" End Sub Click to expand... Many thanks! :sign0104: