T Tim Chapman Active Member Licensed User Longtime User Apr 21, 2024 #1 From here I found the LongTextSimple which is very helpful for me: Best view (control) for showing a large text file In my application I need to show some instructions (nearly 200 lines). I created a new activity and added the text in an edittext-control. It works but the scrolling of the lines is not the best. Perhaps there is a better control for showing large text-files? Any ideas? www.b4x.com I need to be able to click on the text and have that occur. I tried adding it to the code as: Code: Sub scvText_Click LogColor("ScvText_Click",Colors.Blue) End Sub Sub lblText_Click LogColor("LblText_Click",Colors.Blue) End Sub but it does not work. Any ideas?
From here I found the LongTextSimple which is very helpful for me: Best view (control) for showing a large text file In my application I need to show some instructions (nearly 200 lines). I created a new activity and added the text in an edittext-control. It works but the scrolling of the lines is not the best. Perhaps there is a better control for showing large text-files? Any ideas? www.b4x.com I need to be able to click on the text and have that occur. I tried adding it to the code as: Code: Sub scvText_Click LogColor("ScvText_Click",Colors.Blue) End Sub Sub lblText_Click LogColor("LblText_Click",Colors.Blue) End Sub but it does not work. Any ideas?
mangojack Expert Licensed User Longtime User Apr 21, 2024 #2 I downloaded the above example and generated a click event in the Designer. It worked for me . Code: Private Sub lblText_Click Log("Clicking") End Sub Not more I can say . possibly upload a small example project. Upvote 0
I downloaded the above example and generated a click event in the Designer. It worked for me . Code: Private Sub lblText_Click Log("Clicking") End Sub Not more I can say . possibly upload a small example project.
T Tim Chapman Active Member Licensed User Longtime User Apr 21, 2024 #3 I apologize. I did not use the first one. I used the one from this post: Best view (control) for showing a large text file In my application I need to show some instructions (nearly 200 lines). I created a new activity and added the text in an edittext-control. It works but the scrolling of the lines is not the best. Perhaps there is a better control for showing large text-files? Any ideas? www.b4x.com It does not have a layout file. Any ideas on how to make the click work for this? Upvote 0
I apologize. I did not use the first one. I used the one from this post: Best view (control) for showing a large text file In my application I need to show some instructions (nearly 200 lines). I created a new activity and added the text in an edittext-control. It works but the scrolling of the lines is not the best. Perhaps there is a better control for showing large text-files? Any ideas? www.b4x.com It does not have a layout file. Any ideas on how to make the click work for this?
klaus Expert Licensed User Longtime User Apr 21, 2024 #4 You need also to change this line: lblText.Initialize("") to this one: lblText.Initialize("lblText") Upvote 1