Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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

1 visualización (últimos 30 días)
Trick Verzosa
Trick Verzosa el 15 de Feb. de 2017
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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!

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by