New topic: 

Selecting text in GotFocus event on Windows.

<http://forums.realsoftware.com/viewtopic.php?t=37977>

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        Terry Ford          Post subject: Selecting text in GotFocus 
event on Windows.Posted: Mon Mar 07, 2011 12:03 pm                         
Joined: Sat Oct 01, 2005 4:13 pm
Posts: 53
Location: Surrey, BC, CANADA                I am becoming frustrated with the 
differences between Windows and Mac once more.

I have some numeric TextFields. When I tab into them, the text is automatically 
selected. I wish to do the same when the user clicks on the TextFields so I 
added the following text to the Got Focus event:

Me.SelStart = 0
Me.SelLength = Len(Me.Text)

This works fine on Mac OS but doesn't on Windows XP. I am running in 2010r4.1 
on both machines.

Anyone have any Idea why this code isn't working on the Bill Gates OS?

Terry      
_________________
Terry Ford  
                             Top                 charonn0          Post 
subject: Re: Selecting text in GotFocus event on Windows.Posted: Mon Mar 07, 
2011 1:45 pm                                 
Joined: Mon Apr 02, 2007 2:08 am
Posts: 367
Location: San Francisco, CA, USA                Code:Me.SelectAll()      
_________________
Boredom Software  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 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]

Reply via email to