user interface - MATLAB GUI tab ordering -


in current project have bunch of edit text boxes in gui. when i/m in first text blank , hit tab key skips third text box, when hit tab again goes second box. every time hit tab jumps around in weird order. found out order dependent on order of callback function each text box. without going in copy pasting , changing around code gets generated guide there better way order text boxes. example when i'm in box red x , hit tab takes me box red z, red y green x green z. want able click red x , using tab step through , fill out other blocks. @ possible re-order?

enter image description here

guide-generated gui

when using guide, can use "tab order editor". using following menu item:

enter image description here

for simple gui, single button , 2 text boxes, see following dialog box:

enter image description here

then set tab order moving ui objects up/down.


programmatic gui

to set tab order programatically, can use uistack reorder handles.

for example, move uicontrol "up" 1 in order:

uistack(hui,'up',1) 

to see order of handles controls in figure hf:

ch = get(hf,'children') 

Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -