I’m in the process of converting a Web 1.0 project to Web 2.0 and I need to make a WebTextArea scroll to the End of the text that I could use Scroll Position for in a Web 1.0. I’ve done some searching and I found that I can put the cursor at the end of the text using the following code, but the WebTextArea does not scroll to the cursor position as I had hoped.
Var pos as string = ProcessingLogsCC1.TextArea_Transaction.Text.Length.ToString
It is extremely frustrating that Xojo eliminated ScrollPosition. I’ve tried several things by searching Javascipt for scroll to bottom which essentially set ScrollTop = ScrollHeight but I can’t seem to get it to work.
Maybe one day Web 2 will be feature complete and with less bugs. For now, I dont really see any thing that make moving to it worth the long list of problems, lost of functionality, hacks and workarounds that moving would requiere.
And yet it doesn’t make much sense to me to create new web applications using the Web 1.0 framework which will eventually have to also be converted to Web 2.0 sometime in the future when Web 2.0 is at least comparably feature complete to Web 1.0. I’ve mostly figured out how to stylistically work around the Bootstrap style limitations and utilize some of the bootstrap style advantages, but things like leaving out the WebTextArea ScrollPosition is just a mind boggling omission that shouldn’t have happened. I’m sure @Greg_O_Lone is tired of hearing complaints about these things, but I’m really trying to make Web 2.0 work for me and when I try to duplicate some functionality I could easily create with 1.0 I constantly run into roadblocks. I’d love to hear why ScrollPosition was left out of WebTextArea and when we can expect some level of scroll control in Web 2.0 or at a minimum how to work around the missing feature. I’m at an impasse with my current project and in the worst kind of mood as result. I’m not going to go backwards to Web 1.0 on this one, but I also have no idea how I’m going to move forward if I can’t get a WebTextArea to scroll to the end of the text.
Public Sub scrollToBottom(extends t as WebTextArea)
if Session <> Nil then