whats wrong with this code

melamoud

Active Member
Licensed User
Longtime User
hi
I'm sure I'm doing something wrong, as part of the resume activity sub I'm having this code, is it not allowed ?
the show sub return immidiatly with response of cancel.
B4X:
                Dim cd As CustomDialog
      Dim te As EditText
      te.Initialize("")
      te.Enabled = False
      te.SingleLine = False
      te.Wrap = True
      te.TextColor = Colors.White
      te.TextSize = 14
      te.Text = "this is a test for a very long line, so lets see if it split into two lines and wrap correctly"
      cd.AddView(te,10%x,10%y, 80%x,80%y)         
      Dim result As Int
      result = cd.Show("please fill the first 3 fields for the app to work","Ok","","",Null)

thanks
 
Top