Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How can I set uicontrols that is independent from my tabbed uicontrols?
조회 수: 1 (최근 30일)
이전 댓글 표시
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!
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!