Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

1 回表示 (過去 30 日間)
Trick Verzosa
Trick Verzosa 2017 年 2 月 15 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by