Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Pressing TAB in GUI

Subject: Pressing TAB in GUI

From: machatsk

Date: 17 Aug, 2010 19:43:08

Message: 1 of 4

Hello all,
     I have a GUI with about 10 edit text boxes. When I press the TAB key I want the cursor to go to the next text box. But, it jumps around text boxes (so from the first it goes to the 5th then the 8th then the 3rd etc). I assume this has to do with the order in which they were created (since I added and deleted several since the first revision). Is there any simple way I can set the order?
               Thanks
               Maxx

Subject: Pressing TAB in GUI

From: Andy

Date: 17 Aug, 2010 20:02:20

Message: 2 of 4

"machatsk " <chatskom@chemimage.com> wrote in message <i4eooc$r5v$1@fred.mathworks.com>...
> Hello all,
> I have a GUI with about 10 edit text boxes. When I press the TAB key I want the cursor to go to the next text box. But, it jumps around text boxes (so from the first it goes to the 5th then the 8th then the 3rd etc). I assume this has to do with the order in which they were created (since I added and deleted several since the first revision). Is there any simple way I can set the order?
> Thanks
> Maxx

I believe the relevant property is called 'TabOrder'.

Subject: Pressing TAB in GUI

From: machatsk

Date: 17 Aug, 2010 20:13:04

Message: 3 of 4

"Andy " <myfakeemailaddress@gmail.com>

> I believe the relevant property is called 'TabOrder'.


   Thank you.

Subject: Pressing TAB in GUI

From: Steven_Lord

Date: 17 Aug, 2010 20:33:06

Message: 4 of 4



"machatsk " <chatskom@chemimage.com> wrote in message
news:i4eooc$r5v$1@fred.mathworks.com...
> Hello all,
> I have a GUI with about 10 edit text boxes. When I press the TAB key I
> want the cursor to go to the next text box. But, it jumps around text
> boxes (so from the first it goes to the 5th then the 8th then the 3rd
> etc). I assume this has to do with the order in which they were created
> (since I added and deleted several since the first revision). Is there any
> simple way I can set the order?

If you created your GUI using GUIDE, use the Tab Order Editor:

http://www.mathworks.com/access/helpdesk/help/techdoc/creating_guis/f8-998374.html

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us