hibrid0 Active Member Licensed User Longtime User Oct 23, 2018 #1 Hi guys, I have a many edittext with multine check. And just is visible 1 line at time with an scrolling text. I have every edtitext with Edittext.wrap= true. B4X: txt_1.Background=functions.BackGround(Colors.White) txt_1.InputType = Bit.Or(0x00004000, 0x00000001) txt_1.TextColor=Colors.Black functions.ViewSettins1.setCursorDrawableColor(txt_1, Colors.Black) txt_1.Wrap = True Attachments bug_or_feature_editext.png 12.6 KB · Views: 237 Last edited: Oct 24, 2018
Hi guys, I have a many edittext with multine check. And just is visible 1 line at time with an scrolling text. I have every edtitext with Edittext.wrap= true. B4X: txt_1.Background=functions.BackGround(Colors.White) txt_1.InputType = Bit.Or(0x00004000, 0x00000001) txt_1.TextColor=Colors.Black functions.ViewSettins1.setCursorDrawableColor(txt_1, Colors.Black) txt_1.Wrap = True
Semen Matusovskiy Well-Known Member Licensed User Oct 24, 2018 #2 You need to place whole code, which creates a textbox. Maybe you set very big padding. BTW, which relation txt_causa has to txt_1 ? Upvote 0
You need to place whole code, which creates a textbox. Maybe you set very big padding. BTW, which relation txt_causa has to txt_1 ?
hibrid0 Active Member Licensed User Longtime User Oct 24, 2018 #3 Semen Matusovskiy said: You need to place whole code, which creates a textbox. Maybe you set very big padding. BTW, which relation txt_causa has to txt_1 ? Click to expand... Hi thanks for your answers. I create the edittext with the designer. Now I have : B4X: txt_1.Background=functions.BackGround(Colors.White) txt_1.InputType = Bit.Or(0x00004000, 0x00000001) txt_1.TextColor=Colors.Black functions.ViewSettins1.setCursorDrawableColor(txt_1, Colors.Black) txt_1.Wrap = True txt_1.Padding = Array As Int (0dip,0dip,0dip,0dip) And continue showing with 1 line. Upvote 0
Semen Matusovskiy said: You need to place whole code, which creates a textbox. Maybe you set very big padding. BTW, which relation txt_causa has to txt_1 ? Click to expand... Hi thanks for your answers. I create the edittext with the designer. Now I have : B4X: txt_1.Background=functions.BackGround(Colors.White) txt_1.InputType = Bit.Or(0x00004000, 0x00000001) txt_1.TextColor=Colors.Black functions.ViewSettins1.setCursorDrawableColor(txt_1, Colors.Black) txt_1.Wrap = True txt_1.Padding = Array As Int (0dip,0dip,0dip,0dip) And continue showing with 1 line.
hibrid0 Active Member Licensed User Longtime User Oct 24, 2018 #5 jimmyF said: txt_1.SingleLine=False Click to expand... Hi and thanks for your help, but all edittext was created with the designer and was uncheck the single line. Attachments error.png 8.4 KB · Views: 175 Upvote 0
jimmyF said: txt_1.SingleLine=False Click to expand... Hi and thanks for your help, but all edittext was created with the designer and was uncheck the single line.
jimmyF Active Member Licensed User Longtime User Oct 24, 2018 #6 You changed the ImputType in code. I would suggest you add the line again B4X: txt_1.SingleLine=False at the end of your code. I had this same issue and it got changed when I changed the InputType in code. Upvote 0
You changed the ImputType in code. I would suggest you add the line again B4X: txt_1.SingleLine=False at the end of your code. I had this same issue and it got changed when I changed the InputType in code.
hibrid0 Active Member Licensed User Longtime User Oct 24, 2018 #7 jimmyF said: You changed the ImputType in code. I would suggest you add the line again B4X: txt_1.SingleLine=False at the end of your code. I had this same issue and it got changed when I changed the InputType in code. Click to expand... I tested and now is working. Upvote 0
jimmyF said: You changed the ImputType in code. I would suggest you add the line again B4X: txt_1.SingleLine=False at the end of your code. I had this same issue and it got changed when I changed the InputType in code. Click to expand... I tested and now is working.
jimmyF Active Member Licensed User Longtime User Oct 24, 2018 #8 Great! I don't know if it is a bug in B4A. Maybe? Glad you got it working! Upvote 0