coslad Well-Known Member Licensed User Longtime User Jul 24, 2013 #1 Hi , i have a trouble , if i put through the designer a edittext view large 100%x with singleline= true and wrap=true , when the first line is finished and begin the second line , the fist line disapper even though there is much space . An exemple in attach . You can see the first line almost completely disappeared am i wrong ? Thanks Attachments esempio.png 18.7 KB · Views: 459
Hi , i have a trouble , if i put through the designer a edittext view large 100%x with singleline= true and wrap=true , when the first line is finished and begin the second line , the fist line disapper even though there is much space . An exemple in attach . You can see the first line almost completely disappeared am i wrong ? Thanks
Informatix Expert Licensed User Longtime User Jul 24, 2013 #2 You use two incompatible options: Wrap is for multiline edittexts. Upvote 0
coslad Well-Known Member Licensed User Longtime User Jul 24, 2013 #3 ok, but i need a wrap function like when you write a sms but with done key and without enter key , becouse i save the edittext in a list file , so the text can't contain LF character . Upvote 0
ok, but i need a wrap function like when you write a sms but with done key and without enter key , becouse i save the edittext in a list file , so the text can't contain LF character .
Erel B4X founder Staff member Licensed User Longtime User Jul 24, 2013 #4 You should set SingleLine to True and ForceDone to True. Upvote 0
coslad Well-Known Member Licensed User Longtime User Jul 24, 2013 #5 Hi Erel , I did it , but without wrap=true , the text continues in a straight line without going to the second line when the view is over . Upvote 0
Hi Erel , I did it , but without wrap=true , the text continues in a straight line without going to the second line when the view is over .
Informatix Expert Licensed User Longtime User Jul 24, 2013 #6 With the Masked EditText library, you can set SingleLine to false, Wrap to True (default) and filter the typed keys to remove all CR LF. Upvote 0
With the Masked EditText library, you can set SingleLine to false, Wrap to True (default) and filter the typed keys to remove all CR LF.
coslad Well-Known Member Licensed User Longtime User Jul 24, 2013 #7 Thanks informatrix , at the moment i solved in this way : Code: Sub txt_descrizione_difetto_TextChanged (Old As String, New As String) If New.EndsWith(Chr(10)) Then txt_descrizione_difetto.Text=Old txt_descrizione_difetto.SelectionStart=Old.Length End If End Sub but i'm going to try your solution , thanks again Upvote 0
Thanks informatrix , at the moment i solved in this way : Code: Sub txt_descrizione_difetto_TextChanged (Old As String, New As String) If New.EndsWith(Chr(10)) Then txt_descrizione_difetto.Text=Old txt_descrizione_difetto.SelectionStart=Old.Length End If End Sub but i'm going to try your solution , thanks again
G GaNdAlF89 Active Member Licensed User Longtime User Mar 31, 2015 #8 Hi, I have the same problem. I want that text in multiline edittext continues in second line, but edittext scrolls up the first line. I have also tried with setting SingleLine to True , ForceDone to True and Wrap to True. How can I fix it? Upvote 0
Hi, I have the same problem. I want that text in multiline edittext continues in second line, but edittext scrolls up the first line. I have also tried with setting SingleLine to True , ForceDone to True and Wrap to True. How can I fix it?
Erel B4X founder Staff member Licensed User Longtime User Apr 1, 2015 #9 You should set SingleLine to false. Upvote 0
G GaNdAlF89 Active Member Licensed User Longtime User Apr 1, 2015 #10 Erel said: You should set SingleLine to false. Click to expand... Sorry, I had to say that SingleLine was set to False.. Upvote 0
Erel said: You should set SingleLine to false. Click to expand... Sorry, I had to say that SingleLine was set to False..
Informatix Expert Licensed User Longtime User Apr 1, 2015 #11 GaNdAlF89 said: Sorry, I had to say that SingleLine was set to False.. Click to expand... There's a bug in the standard EditText (not really the fault of Erel) that I fixed in my Masked EditText. The SingleLine and Wrap settings may be ignored depending on how you set the other settings of your EditText (the order is very important). So, as suggested above, use the Masked EditText instead. Upvote 0
GaNdAlF89 said: Sorry, I had to say that SingleLine was set to False.. Click to expand... There's a bug in the standard EditText (not really the fault of Erel) that I fixed in my Masked EditText. The SingleLine and Wrap settings may be ignored depending on how you set the other settings of your EditText (the order is very important). So, as suggested above, use the Masked EditText instead.