New topic: 

What is the proper way to modify tab order and catch ENTER

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

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        mstrickland          Post subject: What is the proper way to 
modify tab order and catch ENTERPosted: Sat Dec 08, 2012 10:15 am               
          
Joined: Sat Jan 14, 2012 2:29 pm
Posts: 9                I have a dialog screen and based on some conditions I 
need to modify the tab order so that at the last field on the screen the order 
begins with the second field not the first (natural tab order).

Right now I have hard coded in LostFocus event a test and a xxx.SetFocus method 
when I need to go to a different field.

To make things more complex I am also detecting the ENTER key in the KeyPressed 
event and doing a xxx.SetFocus on EVERY field to simply go to the next field so 
ENTER works like TAB.

This all works but it seems cumbersome to have to "hard code" the next field.

In another language (on Windows only) to handle special keys (like ENTER) to go 
to the next tab stop you can call a method on any field that simply goes to the 
next field without having to hard code each one.

Any best practice insights would be appreciated.

Thanks      
_________________
Mark
[email protected]  
                             Top                dgdavidge          Post 
subject: Re: What is the proper way to modify tab order and catch ENTPosted: 
Sun Dec 09, 2012 12:13 am                         
Joined: Fri Jun 02, 2006 1:43 pm
Posts: 167
Location: Santa Ynez, CA                Choose Tab Order from the View menu, 
then drag the numbers to the controls you want in order.   
                             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