Hi, Dave. Set the SelectionStart and SelectionEnd properties to 0 to move the cursor to the beginning.
Thanks, Aaron -- Aaron Smith Web Development * App Development * Product Support Specialist Ai Squared * 725 Airport North Office Park, Fort Wayne, IN 46825 260-489-3671 * www.aisquared.com To insure that you receive proper support, please include all past correspondence (where applicable), and any relevant information pertinent to your situation when submitting a problem report to the Ai Squared Technical Support Team. > -----Original Message----- > From: David [mailto:[email protected]] > Sent: Monday, December 8, 2014 10:22 AM > To: [email protected] > Subject: Editbox issue > > I have defined a dialog, holding an Editbox and a couple of buttons. > Everything is working fine, and I can use the MyEditBox.Text property, and > have some text filled into the editbox. > > Yet, there seem to exist one small annoyance here. After the editbox has > been filled in, the cursor always land at the end of the text. Not a big deal. > The user can simply hit Ctrl-Home, and then start to arrow his way down > through the box. And if he has set his screen reader correctly, he will have > the whole contents read out automatically, once the editbox gets focus. > > Still, I wonder if there is - or could be made available - a routine for > placing > the cursor at the top of the text, once the editbox has been filled in and > things are ready for reading. many users may not find it very logic to start > out > at the end of the text. Imagine if you was offered to read a book, and they > presented you the back cover first thing. Smile. > > Any such routine-call existing, or any suggestions for a workaround? OK, I > have the idea of one workaround, even if it is a bit simplistic. I could send > a > Ctrl-Hme command right after the editbox has been getting the focus, but > don't know if there is any drawback of doing so. That's why, I wanted to > check with other developers what their ideas might be, or if they have fixed > it by any means in their coding. > > Thanks for all inputs. > > -- > David >
