Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

How can I set uicontrols that is independent from my tabbed uicontrols?

1 visualizzazione (ultimi 30 giorni)
Hi! I am trying to make a GUI programatically, and want to set some fixed uicontrols that will remain visible on the gui if I changed tabs. I tried every thing I know as of now but the uicontrols that is meant to be visible is being hid by the tab. The following is the code I'm working on:
function test()
f = figure('Visible', 'off', 'position', [100 100 1280 720]);
set(f, 'MenuBar', 'none');
set(f, 'ToolBar', 'none');
filemenu = uimenu(f, 'Label', 'File');...
uimenu(filemenu, 'Label', 'New', 'Callback', @optionnew, 'Accelerator', 'n');
toolsmenu = uimenu(f, 'Label', 'Tools');...
uimenu(toolsmenu, 'Label', 'Export', 'Callback', @optionexport, 'Accelerator', 'e');
ftext1 = uicontrol(f, 'Style', 'text', 'string', 'Belt Width, mm', 'tag', 'text1',...
'position', [850 600 150 40]);
ftab = uitabgroup('Parent', f);
tab1 = uitab('Parent', ftab, 'Title', 'Project Details');
tprojnotxt = uicontrol(tab1, 'Style', 'Text', 'HorizontalAlignment', 'left',...
'string', 'Project No.', 'Position', [50 600 150 40]);
tprojnoedit = uicontrol(tab1, 'style', 'edit', 'string', 'tag', 'projnoedit',...
'position', [50 590 300 25]);
handles = guihandles(f);
guidata(f, handles);
f.Visible = 'on';
What can I do to solve this? Thanks!

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by