New topic: Question about Text area objects and scroll bars
<http://forums.realsoftware.com/viewtopic.php?t=38400> Page 1 of 1 [ 4 posts ] Previous topic | Next topic Author Message IamKJVonly Post subject: Question about Text area objects and scroll barsPosted: Wed Mar 30, 2011 9:24 am Joined: Sun Oct 01, 2006 8:13 am Posts: 34 I have a text area object that I load with text data. When there is more text to put into the text area object than can be displayed at one time a scroll bar appears on the right side of the object. This is fine and I have no problem with it. The problem is that it automatically scrolls to the bottom of the text so I have to scroll up all the time. Is there a way to keep the scroll bar at the top or a way to put it at the top after I have loaded the text area object?? I hope you can follow me because I don't even know how to word a search to find something like this. ex: taReamrks.text = str__NoteRemarks If str__NoteRemarks's size requires a scroll bar I want the scroll bar to be at the top not the bottom. Any help would be appricated at it's very annoying to have to scroll up all the time to see the start of the text. Thanks Dave _________________ I'm using windows 7 (64 bit) and Real Studio 2010,r5 (Romans 10:9-10) Top Jym Post subject: Re: Question about Text area objects and scroll barsPosted: Wed Mar 30, 2011 9:29 am Joined: Sat Oct 01, 2005 5:19 pm Posts: 2344 If you look in the Language Reference you will see there is a ScrollPosition in the Methods Top mjh Post subject: Re: Question about Text area objects and scroll barsPosted: Wed Mar 30, 2011 9:39 am Joined: Sun Feb 19, 2006 3:10 pm Posts: 1175 Location: Hamburg, Germany When I am assigning a string to a TextAreaâs Text property, the scroll position stays on top (thatâs under Mac OS X though and using the latest version of RS). The only thing that would make the TextArea scroll down would be to add text at the end by placing the selection there and assigning the added text to TextArea.SelText. In that case I would have to add a line such as TextArea1.ScrollPosition = 0. _________________ Michael J. HuÃmann http://digicam-experts.de Top IamKJVonly Post subject: Re: Question about Text area objects and scroll barsPosted: Wed Mar 30, 2011 9:56 am Joined: Sun Oct 01, 2006 8:13 am Posts: 34 Thanks very much for your help. For some reasom I just couldn't think of scroll position. Brain dead as usual I guess Anyway your quick response was very helpfull and not only here, but will help me in some other areas too. BTW: It was a setfocus command that was driving the scroll bar down and adding the scroll postion after that solved my problem. Again thanks for the timely help it's much appricated. Dave _________________ I'm using windows 7 (64 bit) and Real Studio 2010,r5 (Romans 10:9-10) Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 4 posts ]
-- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
