Label question

volvomann

Active Member
Licensed User
Longtime User
Is it possible to write x2 whith the 2 higther in label.text? if yes how can i do it
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Yes, with the RichString library.
B4X:
Sub Globals
   Dim lbl As Label
End Sub

Sub Activity_Create(FirstTime As Boolean)
   lbl.Initialize("")
   Activity.AddView(lbl, 0, 50dip, 200dip, 100dip)
   Dim rs As RichString
   rs.Initialize("Example: x{superscript}2{superscript}")
   rs.Superscript2("{superscript}")
   lbl.Text = rs
End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…