Info

This question is closed. Reopen it to edit or answer.

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

1 view (last 30 days)
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!

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!