TAG
Publicado por Manuel (2 intervenciones) el 26/05/2018 06:58:20
Amigos quiero crear pestañas en un GUI pero me marca un error
ERROR: class handle has no Constant property or Static method named 'p1'.
1
2
3
4
5
6
7
8
9
10
11
12
13
% Crear grupo de pestañas
handles.tgroup = uitabgroup ('Parent', handles.figure1, 'TabLocation', 'left');
handle.tag1 = uitab ('Parent', handles.tgroup, 'Title', 'My Tab Label 1');
handles.tag2 = uitab ('Parent', handles.tgroup, 'Title', 'My Tab Label 2');
handles.tag3 = uitab ('Parent', handles.tgroup, 'Title', 'My Tab Label 3');
% Coloque los paneles en cada pestaña
set (handle.p1, 'Parent', handles.tag1)
set (handle.p2, 'Parent', handles.tag2)
set (handle.p3, 'Parent', handles.tag3)
% Vuelva a colocar cada panel en la misma ubicación que el panel 1
set (maneja.p2, 'posición', get (handle.p1, 'posición'));
set (handles.p3, 'position', get (handle.p1, 'position'));
handles.output = hObject;
ERROR: class handle has no Constant property or Static method named 'p1'.
Valora esta pregunta
0