BarryW Active Member Licensed User Longtime User Oct 14, 2016 #1 Hi. After setting my edittext input type to type none it cannot accept crlf (new line). Tnx.
Erel B4X founder Staff member Licensed User Longtime User Oct 16, 2016 #2 Try to set SingleLine to false after you change the input type. Upvote 0
BarryW Active Member Licensed User Longtime User Oct 17, 2016 #3 I already set the SingleLine to false and Wrap to false. Still when i try Code: EditText1.Text = "Sample" & CRLF & "Text" I get Sample Text. I think CRLF replaces by space because when i use 2 CRLF it just bring me 2 spaces. Upvote 0
I already set the SingleLine to false and Wrap to false. Still when i try Code: EditText1.Text = "Sample" & CRLF & "Text" I get Sample Text. I think CRLF replaces by space because when i use 2 CRLF it just bring me 2 spaces.
Erel B4X founder Staff member Licensed User Longtime User Oct 17, 2016 #4 Try it with: Code: EditText1.SingleLine = False EditText1.Text = "Sample" & CRLF & "Text" Upvote 0
BarryW Active Member Licensed User Longtime User Oct 18, 2016 #5 I already set it. Did you already tried it? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 18, 2016 #6 It works properly here. Tested with this code: Code: Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("1") EditText1.InputType = EditText1.INPUT_TYPE_NONE EditText1.SingleLine = False EditText1.Text = $"sdfj ergerg lksdfj ksdlf "$ End Sub Note that if you want to create a scrollable, non-editable text field then you can use CustomListView.AddText. Upvote 0
It works properly here. Tested with this code: Code: Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("1") EditText1.InputType = EditText1.INPUT_TYPE_NONE EditText1.SingleLine = False EditText1.Text = $"sdfj ergerg lksdfj ksdlf "$ End Sub Note that if you want to create a scrollable, non-editable text field then you can use CustomListView.AddText.
BarryW Active Member Licensed User Longtime User Oct 19, 2016 #7 My scenario is is have a textbox then it is set to designer windows as InputType = INPUT_TYPE_NONE SingleLine = False Wrap = False Then is have a asynstream then when it receive something it append it to textbox I used textbox as my display because it automatically scroll textbox both horizontal and vertical Still the crlf is not appending on my textbox Code: if textboxt1.text.length > 0 then textbox1.text = textbox1.text & CRLF textbox1.text = textbox1.text & NewItem Upvote 0
My scenario is is have a textbox then it is set to designer windows as InputType = INPUT_TYPE_NONE SingleLine = False Wrap = False Then is have a asynstream then when it receive something it append it to textbox I used textbox as my display because it automatically scroll textbox both horizontal and vertical Still the crlf is not appending on my textbox Code: if textboxt1.text.length > 0 then textbox1.text = textbox1.text & CRLF textbox1.text = textbox1.text & NewItem
Erel B4X founder Staff member Licensed User Longtime User Oct 19, 2016 #8 Try it with the code I posted in post #4. Upvote 0